mirror of https://github.com/evilhero/mylar
FIX: fix for invalid status code logging attempt during image retrieval
This commit is contained in:
parent
a7281582ab
commit
6ff54a154d
|
@ -3676,8 +3676,8 @@ def getImage(comicid, url, issueid=None):
|
||||||
logger.info('Attempting to retrieve the comic image for series')
|
logger.info('Attempting to retrieve the comic image for series')
|
||||||
try:
|
try:
|
||||||
r = requests.get(url, params=None, stream=True, verify=mylar.CONFIG.CV_VERIFY, headers=mylar.CV_HEADERS)
|
r = requests.get(url, params=None, stream=True, verify=mylar.CONFIG.CV_VERIFY, headers=mylar.CV_HEADERS)
|
||||||
except Exception, e:
|
except Exception as e:
|
||||||
logger.warn('Unable to download image from CV URL link: %s [Status Code returned: %s' % (url, r.status_code))
|
logger.warn('[ERROR: %s] Unable to download image from CV URL link: %s' % (e, url))
|
||||||
|
|
||||||
logger.fdebug('comic image retrieval status code: %s' % r.status_code)
|
logger.fdebug('comic image retrieval status code: %s' % r.status_code)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue