From a09cddbf42ea8af62fc91ca9c5915f97b6eceb72 Mon Sep 17 00:00:00 2001 From: zakary Date: Sun, 4 Aug 2024 18:23:29 -0500 Subject: [PATCH] fix(exit-code): exiting successfully with error code 1 --- .gitignore | 1 + retraktarr/retraktarr.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6bfbfcc..2903b0e 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,4 @@ MANIFEST *.pdf *.jpg *.png +/.idea diff --git a/retraktarr/retraktarr.py b/retraktarr/retraktarr.py index b8ed0a3..c270cfa 100644 --- a/retraktarr/retraktarr.py +++ b/retraktarr/retraktarr.py @@ -204,10 +204,10 @@ def main(): trakt_ids, ) print(f"Total Series: {len(arr_ids)}") - sys.exit(1) + sys.exit(0) - if args.radarr or args.all or args.refresh: - sys.exit(1) + if args.radarr or args.all: + sys.exit(0) parser.print_help()