From a6c39d50b933d098012233a3eeeab03016e243d3 Mon Sep 17 00:00:00 2001 From: "vladimir.andryushechkin@insight-centre.org" Date: Fri, 27 Jan 2017 14:30:21 +0000 Subject: [PATCH] added more reporting of exceptions in plugins --- senpy/extensions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/senpy/extensions.py b/senpy/extensions.py index a9228e5..0260635 100644 --- a/senpy/extensions.py +++ b/senpy/extensions.py @@ -106,6 +106,8 @@ class Senpy(object): resp.analysis.append(plug) logger.debug("Returning analysis result: {}".format(resp)) except Exception as ex: + print("An exception happened in a plugin... about to report it") + logging.exception('Got exception analysing data') resp = Error(message=str(ex), status=500) return resp