From b4ab64a11bc8511233a33dc5234bb8b68d4480e8 Mon Sep 17 00:00:00 2001
From: supergonkas <duramato@users.noreply.github.com>
Date: Fri, 11 Dec 2015 11:02:03 +0000
Subject: [PATCH] Fix "TypeError: argument of type 'NoneType' is not iterable"
 on DanishBits

---
 sickbeard/providers/danishbits.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sickbeard/providers/danishbits.py b/sickbeard/providers/danishbits.py
index 51d466014..4f27fc096 100644
--- a/sickbeard/providers/danishbits.py
+++ b/sickbeard/providers/danishbits.py
@@ -58,7 +58,7 @@ class DanishbitsProvider(TorrentProvider):  # pylint: disable=too-many-instance-
 
     @staticmethod
     def loginSuccess(output):
-        if "<title>Login :: Danishbits.org</title>" in output:
+        if not output or "<title>Login :: Danishbits.org</title>" in output:
             return False
         else:
             return True
-- 
GitLab