TILDR-1073 - Fix profile initialization
parent
42e2a5e9c2
commit
ab1e6ad2bd
|
@ -4,7 +4,7 @@ import database, ujson, sim800, dialogs, http
|
|||
def get_profile():
|
||||
profile_json = database.get("tildr_profile")
|
||||
if profile_json is None:
|
||||
return {}
|
||||
return None
|
||||
|
||||
profile = ujson.loads(profile_json)
|
||||
return profile
|
||||
|
|
Loading…
Reference in New Issue