From 36c01bd196a586ba6ffdb126816454d701cfa6fd Mon Sep 17 00:00:00 2001 From: geirawsm Date: Wed, 10 Jan 2024 00:27:05 +0100 Subject: [PATCH] More minor changes --- sausage_bot/util/cogs.py | 1 - sausage_bot/util/config.py | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sausage_bot/util/cogs.py b/sausage_bot/util/cogs.py index 9a56926..8b84eff 100755 --- a/sausage_bot/util/cogs.py +++ b/sausage_bot/util/cogs.py @@ -140,7 +140,6 @@ async def load_and_clean_cogs(): ) to_be_removed = [] for cog_name in [name[0] for name in already_registered_cogs]: - log.debug(f'`cog_name` is {cog_name}') if cog_name not in filelist: log.log(f'Removing `{cog_name}`') to_be_removed.append(('cog_name', cog_name)) diff --git a/sausage_bot/util/config.py b/sausage_bot/util/config.py index 081496c..5b91fae 100755 --- a/sausage_bot/util/config.py +++ b/sausage_bot/util/config.py @@ -35,10 +35,9 @@ def config(): try: BOT_ID = env('BOT_ID') -except EnvError: +except EnvError as e: + print('Error: {e}') print('You need to set `BOT_ID` in .env for this to work') - sys.exit() - try: intents = discord.Intents.all()