mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
consume read time oout errors
wrap fix in try/except
This commit is contained in:
parent
5d06f04d1d
commit
ec28018c61
2 changed files with 10 additions and 2 deletions
|
@ -233,5 +233,9 @@ def db_reset():
|
||||||
|
|
||||||
dialog.ok(heading=language(29999), line1=language(33088))
|
dialog.ok(heading=language(29999), line1=language(33088))
|
||||||
xbmc.executebuiltin('RestartApp')
|
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
|
||||||
|
|
||||||
|
|
|
@ -275,7 +275,11 @@ class DownloadUtils(object):
|
||||||
raise internal_exceptions.ExceptionWrapper(error)
|
raise internal_exceptions.ExceptionWrapper(error)
|
||||||
|
|
||||||
except requests.exceptions.ConnectTimeout as 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)
|
raise internal_exceptions.ExceptionWrapper(error)
|
||||||
|
|
||||||
except requests.exceptions.ConnectionError as error:
|
except requests.exceptions.ConnectionError as error:
|
||||||
|
|
Loading…
Reference in a new issue