1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-21 23:32:23 +00:00

FIX: fix for incorrect error variable reference during a failed search

This commit is contained in:
evilhero 2020-01-13 12:05:27 -05:00
parent 00d7107d40
commit 6ffb938735

View file

@ -762,7 +762,7 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDa
break
except requests.exceptions.RequestException as e:
logger.warn('General Error fetching data from %s: %s' % (nzbprov, e))
if e.r.status_code == 503:
if str(r.status_code) == '503':
#HTTP Error 503
logger.warn('Aborting search due to Provider unavailability')
foundc['status'] = False