diff options
| author | 2019-10-03 20:19:27 -0700 | |
|---|---|---|
| committer | 2019-10-03 20:23:16 -0700 | |
| commit | c05d0dbf01f7357ee20a8b7dcc7ca07939ea28c4 (patch) | |
| tree | 8e97cf62ae9ef05c11ca52f3fb6fc2e4d097b8a8 | |
| parent | Use manage method for extensions commands (diff) | |
Show original exception, if available, when an extension fails to load
| -rw-r--r-- | bot/cogs/extensions.py | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/bot/cogs/extensions.py b/bot/cogs/extensions.py index e24e95e6d..0e223b2a3 100644 --- a/bot/cogs/extensions.py +++ b/bot/cogs/extensions.py @@ -196,6 +196,9 @@ class Extensions(Cog):                  for func in action.value:                      func(self.bot, ext)              except Exception as e: +                if hasattr(e, "original"): +                    e = e.original +                  log.exception(f"Extension '{ext}' failed to {verb}.")                  error_msg = f"{e.__class__.__name__}: {e}" | 
