From 865b3f9ab459da2bf7e3ba3fce3293ec20346d45 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 7 Mar 2016 21:07:14 +0100 Subject: [PATCH] Support exceptions without stacktraces. This fixes #741 --- CHANGES | 6 ++++++ raven/base.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 91e368e9..93446c4e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,9 @@ +Version 5.11.1 +-------------- + +* The raven client supports the stacktrace to be absent. This improves support + with celery and multiprocessing. + Version 5.11.0 -------------- diff --git a/raven/base.py b/raven/base.py index 6cceca81..0b58fed0 100644 --- a/raven/base.py +++ b/raven/base.py @@ -276,9 +276,9 @@ class Client(object): return ( exc_info[0], id(exc_info[1]), - id(exc_info[2].tb_frame.f_code), + id(exc_info[2] and exc_info[2].tb_frame.f_code), id(exc_info[2]), - exc_info[2].tb_lasti, + exc_info[2] and exc_info[2].tb_lasti, ) def skip_error_for_logging(self, exc_info):