mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
tools: pack_v2: update exception with respect to python3
This patch fixes the exceptions cases with respect to
python3.
Change-Id: I3b1264c0bb6a32e7e6ebb588dc6cd5fb43f357b2
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
(cherry picked from commit 1b1930dfa1)
This commit is contained in:
parent
0b77cef201
commit
8f33abee50
1 changed files with 2 additions and 2 deletions
|
|
@ -1102,7 +1102,7 @@ class Pack(object):
|
||||||
ret = self.__gen_flash_script_bootconfig(entries, partition, flinfo, script, section)
|
ret = self.__gen_flash_script_bootconfig(entries, partition, flinfo, script, section)
|
||||||
if ret == 1:
|
if ret == 1:
|
||||||
continue
|
continue
|
||||||
except KeyError, e:
|
except KeyError as e:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Get machID
|
# Get machID
|
||||||
|
|
@ -1536,7 +1536,7 @@ class Pack(object):
|
||||||
ret = self.__gen_script_bootconfig(images, flinfo, part_info, section)
|
ret = self.__gen_script_bootconfig(images, flinfo, part_info, section)
|
||||||
if ret == 1:
|
if ret == 1:
|
||||||
continue
|
continue
|
||||||
except KeyError, e:
|
except KeyError as e:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if section_conf == "cdt" or section_conf == "ddrconfig":
|
if section_conf == "cdt" or section_conf == "ddrconfig":
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue