mirror of
https://github.com/evilhero/mylar
synced 2024-12-22 07:42:24 +00:00
FIX: fix for invalid status code logging attempt during image retrieval
This commit is contained in:
parent
a7281582ab
commit
6ff54a154d
1 changed files with 2 additions and 2 deletions
|
@ -3676,8 +3676,8 @@ def getImage(comicid, url, issueid=None):
|
|||
logger.info('Attempting to retrieve the comic image for series')
|
||||
try:
|
||||
r = requests.get(url, params=None, stream=True, verify=mylar.CONFIG.CV_VERIFY, headers=mylar.CV_HEADERS)
|
||||
except Exception, e:
|
||||
logger.warn('Unable to download image from CV URL link: %s [Status Code returned: %s' % (url, r.status_code))
|
||||
except Exception as e:
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue