mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Added a mechanism to detect a corrupt/broken config database file. Fixes #6460
This commit is contained in:
committed by
Akshay Joshi
parent
93ddc4a5ba
commit
7c88ee7cff
@@ -16,7 +16,10 @@ def get_version():
|
||||
except Exception:
|
||||
return -1
|
||||
|
||||
return version.value
|
||||
if version:
|
||||
return version.value
|
||||
else:
|
||||
return -1
|
||||
|
||||
|
||||
def set_version(new_version):
|
||||
|
||||
Reference in New Issue
Block a user