diff --git a/tools/pack_v2.py b/tools/pack_v2.py index 775952c73e..339b0a5828 100644 --- a/tools/pack_v2.py +++ b/tools/pack_v2.py @@ -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":