From 4d81806f74edc7f1b45f2fad30322d34346e8bd5 Mon Sep 17 00:00:00 2001 From: eli fessler Date: Sat, 19 Nov 2022 06:14:31 -1000 Subject: [PATCH] fix error with -o --- s3s.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/s3s.py b/s3s.py index 6f05ee0..6d8063a 100755 --- a/s3s.py +++ b/s3s.py @@ -1284,7 +1284,7 @@ def main(): print("That doesn't make any sense! :) Exiting.") sys.exit(0) - elif outfile and len(sys.argv) > 2: + elif outfile and len(sys.argv) > 2 and "--skipprefetch" not in sys.argv: print("Cannot use -o with other arguments. Exiting.") sys.exit(0) @@ -1305,7 +1305,8 @@ def main(): # export results to file: -o flag ################################# if outfile: - prefetch_checks(printout=True, skipprefetch=skipprefetch) + if not skipprefetch: + prefetch_checks(printout=True) print("Fetching your JSON files to export locally. This might take a while...") # fetch_json() calls prefetch_checks() to gen or check tokens parents, results, coop_results = fetch_json("both", separate=True, exportall=True, specific=True, skipprefetch=True)