From 1a8b262254e8e0709daaf1333fe9e5fa4b2c23b3 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 10 Aug 2021 09:50:06 +0200 Subject: [PATCH] Ignore error --- src/utils/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/core.py b/src/utils/core.py index e8c9b2b..1542217 100644 --- a/src/utils/core.py +++ b/src/utils/core.py @@ -171,12 +171,13 @@ def load(variables): load_dotenv() # load .env file for var in variables: try: - res = environ[var] if var == "DOCKER_KASSOUBOT": # check is VERBOSE is set try: res = bool(environ[var]) except: res = False # if not its False + else: + res = environ[var] if var == "DEACTIVATE": res = list(set(res.split(',')) - {""}) # create a list for the cogs we need to deactivate and remove blank channels and doubles keys[var] = res