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:
parent
00d7107d40
commit
6ffb938735
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue