From 0aec5f4437f6922a43aef2af62c386029c640c59 Mon Sep 17 00:00:00 2001 From: Faiz Ahmed <32914211+Sleepingpirates@users.noreply.github.com> Date: Mon, 26 Jul 2021 13:58:02 -0400 Subject: [PATCH] fixed token bug --- app/bot/helper/confighelper.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/bot/helper/confighelper.py b/app/bot/helper/confighelper.py index 4f5b08e..2835072 100644 --- a/app/bot/helper/confighelper.py +++ b/app/bot/helper/confighelper.py @@ -30,12 +30,11 @@ if(path.exists('bot.env')): except Exception as e: pass -else: - try: - Discord_bot_token = str(os.environ['token']) - switch = 1 - except Exception as e: - print("ERROR. No config found.") +try: + Discord_bot_token = str(os.environ['token']) + switch = 1 +except Exception as e: + print("ERROR. No config found.") if(path.exists('app/config/config.ini')): try: