mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Catch URLError when uploading to Imgur
This commit is contained in:
parent
29db2e958f
commit
fbf4a524c1
1 changed files with 1 additions and 1 deletions
|
@ -559,7 +559,7 @@ def uploadToImgur(imgPath, imgTitle=''):
|
|||
logger.warn(u"PlexPy Helpers :: Unable to upload image to Imgur: %s" % response.reason)
|
||||
else:
|
||||
logger.warn(u"PlexPy Helpers :: Unable to upload image to Imgur.")
|
||||
except urllib2.HTTPError as e:
|
||||
except (urllib2.HTTPError, urllib2.URLError) as e:
|
||||
logger.warn(u"PlexPy Helpers :: Unable to upload image to Imgur: %s" % e)
|
||||
|
||||
return img_url
|
Loading…
Add table
Add a link
Reference in a new issue