Browse Source

Don't output report, unless we have keys/games.

root 4 years ago
parent
commit
5d508daeba
1 changed files with 2 additions and 2 deletions
  1. 2 2
      talker.py

+ 2 - 2
talker.py

@@ -136,7 +136,7 @@ async def space_report():
     white = merge(Style.BRIGHT + Fore.WHITE)
     green = merge(Style.NORMAL + Fore.GREEN)
 
-    if args.report:
+    if args.report and setup:
         # Ok, there's a base filename for the report.
         ansi = args.report + ".ans"
         bbs = args.report + ".bbs"
@@ -221,7 +221,7 @@ async def space_report():
         pprint(settings)
 
     # pprint(setup)
-    if args.report:
+    if args.report and setup:
         # Save all the configuration settings to json
         filename = args.report + ".json"
         print("Saving setup to:", filename)