Commit acfdd0e3 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Improve reporting for JSON type error.

parent 93240118
...@@ -100,8 +100,8 @@ def grid(): ...@@ -100,8 +100,8 @@ def grid():
else: else:
return INLINE_ALERT % ("Error", "Report id is not defined.") return INLINE_ALERT % ("Error", "Report id is not defined.")
except ValueError, msg: except (IndexError, TypeError, ValueError) as e:
return INLINE_ALERT % ("JSON Error...", msg) return INLINE_ALERT % ("JSON Error...", e)
# extract the configurations for the Ext.data.Store and App.grid.Panel. # extract the configurations for the Ext.data.Store and App.grid.Panel.
store = report.to_store() store = report.to_store()
......
...@@ -79,6 +79,6 @@ ...@@ -79,6 +79,6 @@
<p class="my-p">Ce logiciel est distribué sous la licence opence source <p class="my-p">Ce logiciel est distribué sous la licence opence source
<a href="http://www.cecill.info/" target="_blank">CeCILL</a>.</p> <a href="http://www.cecill.info/" target="_blank">CeCILL</a>.</p>
<p class="my-p">&copy; 2010 - 2014 Renaud Le Gac</p> <p class="my-p">&copy; 2010 - 2015 Renaud Le Gac</p>
</body> </body>
</html> </html>
\ No newline at end of file
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