From 08f6cbb675260e8ce47e84d348f3952bfddaf5c4 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Mon, 13 Jan 2020 16:21:09 +0100 Subject: [PATCH] gn_args: Fix Python 3 AttributeError: 'module' object has no attribute 'exc_clear' (see issue #2856) --- tools/gn_args.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gn_args.py b/tools/gn_args.py index 64ebdfadc..f61937018 100644 --- a/tools/gn_args.py +++ b/tools/gn_args.py @@ -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: