1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fix for issue #1041, dict has no attrib entries error

This commit is contained in:
echel0n 2014-12-08 01:30:29 -08:00
parent 50840ec7d8
commit df78fd6669

View File

@ -238,8 +238,10 @@ class NewznabProvider(generic.NZBProvider):
def _checkAuthFromData(self, data):
if not (data.entries and data.feed):
return self._checkAuth()
try:
data['feed']
data['entries']
except:return self._checkAuth()
try:
err_code = int(data['feed']['error']['code'] or 0)