Add detail to client update check failure message

This commit is contained in:
Etoh 2023-03-19 15:13:30 +00:00 committed by GitHub
parent a47c4956f7
commit a00d3dff19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1124,8 +1124,8 @@ class SyncplayClient(object):
publicServers = ast.literal_eval(publicServers) publicServers = ast.literal_eval(publicServers)
return response["version-status"], response["version-message"] if "version-message" in response\ return response["version-status"], response["version-message"] if "version-message" in response\
else None, response["version-url"] if "version-url" in response else None, publicServers else None, response["version-url"] if "version-url" in response else None, publicServers
except: except Exception as e:
return "failed", getMessage("update-check-failed-notification").format(syncplay.version), constants.SYNCPLAY_DOWNLOAD_URL, None return "failed", str(e)+"\n-----\n"+getMessage("update-check-failed-notification").format(syncplay.version), constants.SYNCPLAY_DOWNLOAD_URL, None
class _WarningManager(object): class _WarningManager(object):
def __init__(self, player, userlist, ui, client): def __init__(self, player, userlist, ui, client):