mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 12:18:54 -05:00
Don't try to interpret clientexceptions on cog load
This commit is contained in:
parent
936c58da49
commit
9603075538
@ -334,10 +334,10 @@ class Owner:
|
||||
mod_obj = importlib.import_module(cogname)
|
||||
importlib.reload(mod_obj)
|
||||
self.bot.load_extension(mod_obj.__name__)
|
||||
except discord.ClientException:
|
||||
raise NoSetupError
|
||||
except SyntaxError as e:
|
||||
raise CogLoadError(*e.args)
|
||||
except:
|
||||
raise
|
||||
|
||||
def _unload_cog(self, cogname, reloading=False):
|
||||
if not reloading and cogname == "cogs.owner":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user