summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bb/event.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 366bc4188..ec25ce77f 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -595,6 +595,8 @@ class LogHandler(logging.Handler):
etype, value, tb = record.exc_info
if hasattr(tb, 'tb_next'):
tb = list(bb.exceptions.extract_traceback(tb, context=3))
+ # Need to turn the value into something the logging system can pickle
+ value = str(value)
record.bb_exc_info = (etype, value, tb)
record.exc_info = None
fire(record, None)