consume read time oout errors

wrap fix in try/except
This commit is contained in:
sfaulds 2016-11-18 13:42:46 +11:00
parent 5d06f04d1d
commit ec28018c61
2 changed files with 10 additions and 2 deletions

View file

@ -233,5 +233,9 @@ def db_reset():
dialog.ok(heading=language(29999), line1=language(33088))
xbmc.executebuiltin('RestartApp')
#return xbmcplugin.setResolvedUrl(int(sys.argv[1]), False, xbmcgui.ListItem())
try:
xbmcplugin.setResolvedUrl(int(sys.argv[1]), False, xbmcgui.ListItem())
except:
pass

View file

@ -275,7 +275,11 @@ class DownloadUtils(object):
raise internal_exceptions.ExceptionWrapper(error)
except requests.exceptions.ConnectTimeout as error:
log.error("Server timeout at: %s", url)
log.error("ConnectTimeout at: %s", url)
raise internal_exceptions.ExceptionWrapper(error)
except requests.exceptions.ReadTimeout as error:
log.error("ReadTimeout at: %s", url)
raise internal_exceptions.ExceptionWrapper(error)
except requests.exceptions.ConnectionError as error: