mirror of
https://github.com/evilhero/mylar
synced 2025-01-03 05:24:43 +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
|
break
|
||||||
except requests.exceptions.RequestException as e:
|
except requests.exceptions.RequestException as e:
|
||||||
logger.warn('General Error fetching data from %s: %s' % (nzbprov, 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
|
#HTTP Error 503
|
||||||
logger.warn('Aborting search due to Provider unavailability')
|
logger.warn('Aborting search due to Provider unavailability')
|
||||||
foundc['status'] = False
|
foundc['status'] = False
|
||||||
|
|
Loading…
Reference in a new issue