Commit 800e321f authored by John Wang's avatar John Wang

feat: optimize version check error

parent 0194a099
...@@ -32,8 +32,13 @@ class VersionApi(Resource): ...@@ -32,8 +32,13 @@ class VersionApi(Resource):
'current_version': args.get('current_version') 'current_version': args.get('current_version')
}) })
except Exception as error: except Exception as error:
logging.exception("Check update error.") logging.warning("Check update version error: {}.".format(str(error)))
raise InternalServerError() return {
'version': '0.0.0',
'release_date': '',
'release_notes': '',
'can_auto_update': False
}
content = json.loads(response.content) content = json.loads(response.content)
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment