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

feat: optimize version check error

parent 0194a099
......@@ -32,8 +32,13 @@ class VersionApi(Resource):
'current_version': args.get('current_version')
})
except Exception as error:
logging.exception("Check update error.")
raise InternalServerError()
logging.warning("Check update version error: {}.".format(str(error)))
return {
'version': '0.0.0',
'release_date': '',
'release_notes': '',
'can_auto_update': False
}
content = json.loads(response.content)
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