]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Library/CommentParsing.py
BaseTools: Refactor python except statements
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Library / CommentParsing.py
index 4713614c4a45dd85e8905481d3fb7c9735b5c8c8..8ee788bd7724e097efb0fbfea980a4ef997bb4c2 100644 (file)
@@ -217,7 +217,7 @@ def ParsePcdErrorCode (Value = None, ContainerFile = None, LineNum = None):
         # To delete the tailing 'L'\r
         #\r
         return hex(ErrorCode)[:-1]\r
-    except ValueError, XStr:\r
+    except ValueError as XStr:\r
         if XStr:\r
             pass\r
         Logger.Error('Parser', \r