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: