WIP: Improvements

This commit is contained in:
2023-07-14 12:36:42 +02:00
parent d9b72e5ad8
commit 01f8a73dae
4 changed files with 94 additions and 6 deletions

View File

@@ -29,7 +29,5 @@ def userReset(userid, key: str):
def userGet(userid, key: str):
try:
return sync.json_read("data/database.json")[str(userid)][key]
except KeyError:
return None
except FileNotFoundError:
except (KeyError, FileNotFoundError):
return None