Fix upgrade check on Python 3. Fixes #1961
parent
12d75e0a51
commit
c0da81e8ec
|
@ -455,10 +455,10 @@ def index():
|
||||||
)
|
)
|
||||||
|
|
||||||
if response.getcode() == 200:
|
if response.getcode() == 200:
|
||||||
data = json.load(response)
|
data = json.loads(response.read().decode('utf-8'))
|
||||||
current_app.logger.debug('Response data: %s' % data)
|
current_app.logger.debug('Response data: %s' % data)
|
||||||
except:
|
except:
|
||||||
pass
|
current_app.logger.exception('Exception when checking for update')
|
||||||
|
|
||||||
if data is not None:
|
if data is not None:
|
||||||
if data['pgadmin4']['version_int'] > config.APP_VERSION_INT:
|
if data['pgadmin4']['version_int'] > config.APP_VERSION_INT:
|
||||||
|
|
Loading…
Reference in New Issue