From f57d8e5ebc928bc1698c6328417f227569539d16 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 17 Mar 2023 16:46:30 +0200 Subject: [PATCH] undo last commit --- files/helpers/settings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/helpers/settings.py b/files/helpers/settings.py index c39b4fa08..4dbdff358 100644 --- a/files/helpers/settings.py +++ b/files/helpers/settings.py @@ -36,8 +36,7 @@ def reload_settings(): if not os.path.isfile(SETTINGS_FILENAME): _save_settings() with open(SETTINGS_FILENAME, 'r', encoding='utf_8') as f: - if f.read(): - _SETTINGS = json.load(f) + _SETTINGS = json.load(f) def _save_settings(): with open(SETTINGS_FILENAME, "w", encoding='utf_8') as f: