Commit 81b3e3cf authored by Peters, Wouter's avatar Peters, Wouter
Browse files

forgot to create optslist when no opts are passed

parent b9b0e1c5
......@@ -681,6 +681,11 @@ def ParseOptions():
logging.info('-v flag specified on command line: extra verbose output')
dummy = logging.root.setLevel(logging.DEBUG)
if opts:
optslist=[item[0] for item in opts]
else:
optslist=[]
# Parse arguments and return as dictionary
arguments={}
......@@ -697,7 +702,6 @@ def ParseOptions():
arguments[key]=arg
if opts: optslist=[item[0] for item in opts]
return optslist, arguments
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment