From 8f33abee5001febc9cc166ab670056650309a17c Mon Sep 17 00:00:00 2001 From: Ram Kumar D Date: Mon, 15 Apr 2024 10:05:41 +0530 Subject: [PATCH] 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 (cherry picked from commit 1b1930dfa17a4b39f52aa61b0175cda335d672db) --- tools/pack_v2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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":