diff options
author | Simon Poirier <simpoir@gmail.com> | 2009-12-07 20:41:34 (GMT) |
---|---|---|
committer | Simon Poirier <simpoir@gmail.com> | 2009-12-07 20:41:34 (GMT) |
commit | 7e65bdb14c2b3a9e04762755a19fcdc9922291fc (patch) | |
tree | d30ef3ccfbf835317d9747d764ee44ea08024236 | |
parent | 534a766fdc24b29777d982b66a71e56c906e4e31 (diff) |
forgot to add the exception string
-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 |