WIP: Improvements
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user