1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-24 09:02:28 +00:00

added more reporting of exceptions in plugins

This commit is contained in:
vladimir.andryushechkin@insight-centre.org 2017-01-27 14:30:21 +00:00
parent 40b67503ce
commit a6c39d50b9

View File

@ -106,6 +106,8 @@ class Senpy(object):
resp.analysis.append(plug) resp.analysis.append(plug)
logger.debug("Returning analysis result: {}".format(resp)) logger.debug("Returning analysis result: {}".format(resp))
except Exception as ex: 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) resp = Error(message=str(ex), status=500)
return resp return resp