config file 不存在时的bug

This commit is contained in:
v3aqb 2013-07-21 22:57:36 +08:00
parent 2f0222aa00
commit ceceb7749e

View file

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