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:
parent
40b67503ce
commit
a6c39d50b9
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user