diff options
-rw-r--r-- | tutorius/addon.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tutorius/addon.py b/tutorius/addon.py index 18d225a..ca729ae 100644 --- a/tutorius/addon.py +++ b/tutorius/addon.py @@ -63,12 +63,12 @@ def _reload_addons(): if hasattr(mod, "__event__"): _cache[mod.__event__['name']] = mod.__event__ mod.__event__['type'] = TYPE_EVENT - except: + except Exception, e: # fetch frame information to complement exception with traceback type, value, tb = sys.exc_info() formatted_tb = traceback.format_tb(tb) - LOGGER.error('Error loadin tutorius add-on [%s]:\n%s' % \ - (mod_name, '\n'.join(formatted_tb))) + LOGGER.error('Error loadin tutorius add-on [%s]:\n%s\n%s' % \ + (mod_name, '\n'.join(formatted_tb), str(e))) def create(name, *args, **kwargs): global _cache |