Commit 421aaf3c authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update plugin_event controllers in order to show traceback in case of error.

parent d8e071db
......@@ -2,10 +2,10 @@
"""plugin_event controllers
"""
import traceback
import urllib
from plugin_dbui import INLINE_ALERT
from plugin_event import Graph, List, Metric2D, ReportException
......@@ -26,8 +26,8 @@ def grid():
grid = report.get_grid_configuration()
title = report.get_title()
except (IndexError, ReportException, TypeError, ValueError) as e:
return INLINE_ALERT % ("REPORT Error...", e)
except (IndexError, ReportException, TypeError, ValueError):
return CODE(traceback.format_exc()).xml()
response.view = "plugin_event/grid.html"
return dict(cfg_store=store, grid=grid, title=title)
......@@ -79,5 +79,5 @@ def metric2d():
response.view = "plugin_event/graph.png"
return dict(data=data, title=title)
except (IndexError, ReportException, TypeError, ValueError) as e:
return INLINE_ALERT % ("REPORT Error...", e)
except (IndexError, ReportException, TypeError, ValueError):
return CODE(traceback.format_exc()).xml()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment