From 455b04b9645b8a77d549d602c7b29f2cddef4267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Br=C3=B6tzmann?= Date: Mon, 4 May 2020 16:57:02 +0200 Subject: [PATCH] [birthday_reminder] Load json file correctly --- birthday_reminder/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birthday_reminder/plugin.py b/birthday_reminder/plugin.py index 7d2350a..3dd149c 100644 --- a/birthday_reminder/plugin.py +++ b/birthday_reminder/plugin.py @@ -70,7 +70,7 @@ class BirthDayPlugin(GajimPlugin): with path.open('r') as file: content = file.read() if content: - self._birthdays = json.load(file) + self._birthdays = json.loads(content) def _store_birthdays(self): data_path = Path(configpaths.get('PLUGINS_DATA'))