Skip to content

Commit

Permalink
fix(exit-code): exiting successfully with error code 1
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkarry committed Aug 4, 2024
1 parent 6969195 commit a09cddb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ MANIFEST
*.pdf
*.jpg
*.png
/.idea
6 changes: 3 additions & 3 deletions retraktarr/retraktarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit a09cddb

Please sign in to comment.