Private GIT

Skip to content
Snippets Groups Projects
Commit eb004868 authored by miigotu's avatar miigotu
Browse files

Make sure soup has categories before parsing them

parent bde0068a
Branches
Tags
No related merge requests found
......@@ -119,7 +119,7 @@ class NewznabProvider(NZBProvider):
return False, return_categories, error_string
data = BeautifulSoup(data, 'html5lib')
if not self._checkAuthFromData(data):
if not self._checkAuthFromData(data) and data.caps and data.caps.categories:
data.decompose()
error_string = u"Error parsing xml for [%s]" % (self.name)
logger.log(error_string, logger.DEBUG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment