[birthday_reminder] Load json file correctly

This commit is contained in:
Daniel Brötzmann committed 2020-05-04 16:57:02 +02:00
1 parent 6d07b61985
commit 455b04b964
1 file changed
+1 -1
+1 -1
View File
@@ -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'))