Private GIT

Skip to content
Snippets Groups Projects
Commit 26a146ef authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Don't even try connecting to Newzbin if the auth details are empty

parent 3c8df499
No related branches found
No related tags found
No related merge requests found
......@@ -339,6 +339,10 @@ class NewzbinProvider(generic.NZBProvider):
return data
def _checkAuth(self):
if sickbeard.NEWZBIN_USERNAME in (None, "") or sickbeard.NEWZBIN_PASSWORD in (None, ""):
raise exceptions.AuthException("Newzbin authentication details are empty, check your config")
class NewzbinCache(tvcache.TVCache):
def __init__(self, provider):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment