From 96e81502695c647d87edc892211e12b99e80855e Mon Sep 17 00:00:00 2001 From: Choco <94597336+ChocoMeow@users.noreply.github.com> Date: Sat, 24 Jun 2023 15:08:16 +0800 Subject: [PATCH] Fixed settings is None --- function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function.py b/function.py index ad93870..5b76d7b 100644 --- a/function.py +++ b/function.py @@ -99,7 +99,7 @@ def init(): global settings json = open_json(os.path.join(root_dir, "settings.json")) - if json: + if json is not None: settings = Settings(json) def langs_setup():