Skip to content

Commit

Permalink
removed NZBGet termination codes
Browse files Browse the repository at this point in the history
Shouldn't be in SAB script
  • Loading branch information
Michael Higgins committed Feb 23, 2015
1 parent d85bc27 commit 4ccaee7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions SABPostProcess.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@
import requests
except ImportError:
print "[ERROR] Python module REQUESTS is required. Install with 'pip install requests' then try again."
sys.exit(0)
sys.exit()

host=settings.Sonarr['host']
port=settings.Sonarr['port']
apikey = settings.Sonarr['apikey']
if apikey == '':
print "[WARNING] Your Sonarr API Key can not be blank. Update autoProcess.ini"
sys.exit(POSTPROCESS_ERROR)
try:
ssl=int(settings.Sonarr['ssl'])
except:
Expand All @@ -88,5 +87,4 @@
print "[INFO] Sonarr responds as "+rstate['state']+"."
except:
print "[WARNING] Update to Sonarr failed, check if Sonarr is running, autoProcess.ini for errors, or check install of python modules requests."
sys.exit(POSTPROCESS_ERROR)
sys.exit(POSTPROCESS_SUCCESS)

0 comments on commit 4ccaee7

Please sign in to comment.