From ab1e6ad2bd3be01bb5f0a1026c5caff460221ed1 Mon Sep 17 00:00:00 2001 From: Catalin Ursachi Date: Tue, 4 Sep 2018 02:06:57 +0100 Subject: [PATCH] TILDR-1073 - Fix profile initialization --- tildr/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tildr/profile.py b/tildr/profile.py index f4d0fac..5692d0a 100644 --- a/tildr/profile.py +++ b/tildr/profile.py @@ -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