Added a mechanism to detect a corrupt/broken config database file. Fixes #6460

This commit is contained in:
Nikhil Mohite
2021-06-08 19:41:47 +05:30
committed by Akshay Joshi
parent 93ddc4a5ba
commit 7c88ee7cff
7 changed files with 137 additions and 9 deletions

View File

@@ -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):