Minor update

This commit is contained in:
Miroslav Stampar
2017-07-05 13:35:02 +02:00
parent 4a4fa07bdd
commit c6577b80d9
6 changed files with 7 additions and 10 deletions

View File

@@ -329,7 +329,7 @@ def main():
except KeyboardInterrupt:
pass
if conf.harFile:
if conf.get("harFile"):
with openFile(conf.harFile, "w+b") as f:
f.write(json.dumps(conf.httpCollector.obtain(), indent=4, separators=(',', ': ')))