From 8e65fe672f19758749ad59f1946ca82aa5492aae Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Sat, 11 Nov 2017 01:23:43 +0100 Subject: [PATCH] I did a dumb --- app.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 5b43564..cb22846 100644 --- a/app.py +++ b/app.py @@ -25,8 +25,11 @@ class Database: f = open('database.json', 'r') except OSError: print('database does not exist, generating from config') - else: - database = json.load(f) + Database.user_tokens = USER_TOKENS + Database.group_ids = VIA_GROUPS + return + + database = json.load(f) Database.user_tokens = database.get('user_tokens') or USER_TOKENS Database.group_ids = database.get('group_ids') or VIA_GROUPS