mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-07 09:58:47 +00:00
add handeling of exceptions for some downloadUrl func calls
This commit is contained in:
parent
62610f5e0d
commit
e2fa93a6c4
4 changed files with 94 additions and 37 deletions
|
@ -125,8 +125,13 @@ class LoginManual(xbmcgui.WindowXMLDialog):
|
|||
|
||||
def _login(self, username, password):
|
||||
|
||||
result = self.emby.loginUser(self.server, username, password)
|
||||
if not result:
|
||||
try:
|
||||
result = self.emby.loginUser(self.server, username, password)
|
||||
except Exception as error:
|
||||
log.info("Error doing login: " + str(error))
|
||||
result = None
|
||||
|
||||
if result is None:
|
||||
self._error(ERROR['Invalid'], lang(33009))
|
||||
return False
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue