diff options
-rwxr-xr-x | test/Scripts/coff-dump.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Scripts/coff-dump.py b/test/Scripts/coff-dump.py index 464ab3110b..0af3d368d5 100755 --- a/test/Scripts/coff-dump.py +++ b/test/Scripts/coff-dump.py @@ -397,8 +397,11 @@ def handle_enum(entry): selector = read_value (definitions [0]) definitions = definitions [1] [selector] - description = definitions[value] if value in definitions else "unknown" - + if value in definitions: + description = definitions[value] + else: + description = "unknown" + write ("%s (" % description) write_value (oformat, value) write (")") |