gn_args: Fix Python 3 AttributeError: 'module' object has no attribute 'exc_clear' (see issue #2856)

This commit is contained in:
Marshall Greenblatt 2020-01-13 16:21:09 +01:00
parent 1a406d079b
commit 08f6cbb675
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def NameValueListToDict(name_value_list):
try:
token_value = int(token_value)
except ValueError:
sys.exc_clear()
pass
# Set the variable to the supplied value.
result[tokens[0]] = token_value
else: