gn_args: Fix Python 3 AttributeError: 'module' object has no attribute 'exc_clear' (see issue #2856)
This commit is contained in:
parent
1a406d079b
commit
08f6cbb675
|
@ -107,7 +107,7 @@ def NameValueListToDict(name_value_list):
|
||||||
try:
|
try:
|
||||||
token_value = int(token_value)
|
token_value = int(token_value)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
sys.exc_clear()
|
pass
|
||||||
# Set the variable to the supplied value.
|
# Set the variable to the supplied value.
|
||||||
result[tokens[0]] = token_value
|
result[tokens[0]] = token_value
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue