recognize api_key config without underscore
This commit is contained in:
parent
6e227b115a
commit
bf06e558e5
1 changed files with 2 additions and 0 deletions
|
@ -191,6 +191,8 @@ def parseArguments(argv):
|
|||
default_key = None
|
||||
if configs.has_option('settings', 'api_key'):
|
||||
default_key = configs.get('settings', 'api_key')
|
||||
elif configs.has_option('settings', 'apikey'):
|
||||
default_key = configs.get('settings', 'apikey')
|
||||
if default_key:
|
||||
args.key = default_key
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue