From 94cde9d8d1ca3fd2c1ee1a1e02c37e3d506012ee Mon Sep 17 00:00:00 2001 From: David Vierra Date: Fri, 15 Feb 2013 18:36:03 -1000 Subject: [PATCH] Debug: Don't fatally crash if something happens when recording exception data --- mceutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mceutils.py b/mceutils.py index 858d0c9..1d4f14e 100644 --- a/mceutils.py +++ b/mceutils.py @@ -57,7 +57,8 @@ def alertException(func): squash_python.get_client().recordException(*sys.exc_info()) except ImportError: pass - + except Exception: + logging.exception("Error while recording exception data:") return _alertException