fix bug when no config file exists

This commit is contained in:
v3aqb
2013-10-14 20:14:59 +08:00
parent 2f0222aa00
commit ac5901ca20
2 changed files with 5 additions and 0 deletions

View File

@ -153,6 +153,8 @@ def main():
with open(config_path, 'rb') as f:
config = json.load(f)
logging.info('loading config from %s' % config_path)
else:
config = {}
optlist, args = getopt.getopt(sys.argv[1:], 's:p:k:m:c:6')
for key, value in optlist: