Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Unified Diff: CodeGenerator.py

Issue 2490823002: [inspector_protocol] Fix NoneType error when parsing config_values. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: CodeGenerator.py
diff --git a/CodeGenerator.py b/CodeGenerator.py
index 38cd846b1b5f0643b4890abffaa0c152263bdd54..fd2413137892038a5ec67de3b13d3b68c310c05b 100644
--- a/CodeGenerator.py
+++ b/CodeGenerator.py
@@ -65,6 +65,8 @@ def read_config():
raise Exception("Config file name must be specified")
config_base = os.path.dirname(config_file)
config_values = arg_options.config_value
+ if not config_values:
+ config_values = []
except Exception:
# Work with python 2 and 3 http://docs.python.org/py3k/howto/pyporting.html
exc = sys.exc_info()[1]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698