From 161978a69d683d7527adc8a05c372780e4ab2b90 Mon Sep 17 00:00:00 2001 From: Himanshu Goel Date: Sat, 22 Oct 2022 15:56:14 -0400 Subject: [PATCH] Exit after generating dummy config if none found --- gelbooru_poster.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gelbooru_poster.py b/gelbooru_poster.py index 7702df7..573b3d8 100644 --- a/gelbooru_poster.py +++ b/gelbooru_poster.py @@ -164,6 +164,7 @@ def main(): if not os.path.exists("config.json"): generate_config(defaults) + sys.exit(0) # If first argument is '--gen-config', generate config.json: if len(sys.argv) > 1 and sys.argv[1] == "--gen-config":