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:
Ram Kumar D 2024-04-15 10:05:41 +05:30
parent 0b77cef201
commit 8f33abee50

View file

@ -1102,7 +1102,7 @@ class Pack(object):
ret = self.__gen_flash_script_bootconfig(entries, partition, flinfo, script, section)
if ret == 1:
continue
except KeyError, e:
except KeyError as e:
continue
# Get machID
@ -1536,7 +1536,7 @@ class Pack(object):
ret = self.__gen_script_bootconfig(images, flinfo, part_info, section)
if ret == 1:
continue
except KeyError, e:
except KeyError as e:
continue
if section_conf == "cdt" or section_conf == "ddrconfig":