Private GIT

Skip to content
Snippets Groups Projects
Commit b4ab64a1 authored by supergonkas's avatar supergonkas
Browse files

Fix "TypeError: argument of type 'NoneType' is not iterable" on DanishBits

parent bee0c587
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ class DanishbitsProvider(TorrentProvider): # pylint: disable=too-many-instance- ...@@ -58,7 +58,7 @@ class DanishbitsProvider(TorrentProvider): # pylint: disable=too-many-instance-
@staticmethod @staticmethod
def loginSuccess(output): def loginSuccess(output):
if "<title>Login :: Danishbits.org</title>" in output: if not output or "<title>Login :: Danishbits.org</title>" in output:
return False return False
else: else:
return True return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment