dest = lib.parent.cfg.get('exception_hook', 'destination')
if dest is not None:
bot.msg(dest, '%s exception: %r %r' % (source, args, kwargs))
- for line in traceback.format_exc(limit=lib.parent.cfg.getint('exception_hook', 'limit', 5)).split("\n"):
+ for line in traceback.format_exc(limit=-lib.parent.cfg.getint('exception_hook', 'limit', 5)).split("\n"):
bot.msg(dest, (' '*4) + line)