From 0a7752fd151bbe441b8cb578cecaca6000e07aef Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sun, 30 Oct 2016 23:02:50 -0400 Subject: [PATCH] newline changes in error logger local variables were right next to the next traceback in errors.log even though the belonged to the previous one --- src/decorators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decorators.py b/src/decorators.py index d0e5497..c9b061f 100644 --- a/src/decorators.py +++ b/src/decorators.py @@ -60,10 +60,10 @@ class handle_error: if _local.level > 1: raise # the outermost caller should handle this - fn = lambda: errlog("\n" + data) + fn = lambda: errlog("\n{0}\n\n".format(data)) data = traceback.format_exc() cli = None - variables = ["\nLocal variables from innermost frame:\n"] + variables = ["\nLocal variables from innermost frame:"] for name, value in _local.frame_locals.items(): if isinstance(value, IRCClient): cli = value