mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix upgrade check on Python 3. Fixes #1961
This commit is contained in:
parent
12d75e0a51
commit
c0da81e8ec
@ -455,10 +455,10 @@ def index():
|
||||
)
|
||||
|
||||
if response.getcode() == 200:
|
||||
data = json.load(response)
|
||||
data = json.loads(response.read().decode('utf-8'))
|
||||
current_app.logger.debug('Response data: %s' % data)
|
||||
except:
|
||||
pass
|
||||
current_app.logger.exception('Exception when checking for update')
|
||||
|
||||
if data is not None:
|
||||
if data['pgadmin4']['version_int'] > config.APP_VERSION_INT:
|
||||
|
Loading…
Reference in New Issue
Block a user