[GRASS-SVN] r44113 - grass/trunk/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Oct 31 04:24:32 EDT 2010
Author: martinl
Date: 2010-10-31 01:24:32 -0700 (Sun, 31 Oct 2010)
New Revision: 44113
Modified:
grass/trunk/lib/python/core.py
Log:
set_raise_on_error() returns current status
Modified: grass/trunk/lib/python/core.py
===================================================================
--- grass/trunk/lib/python/core.py 2010-10-31 08:23:25 UTC (rev 44112)
+++ grass/trunk/lib/python/core.py 2010-10-31 08:24:32 UTC (rev 44113)
@@ -366,9 +366,13 @@
def set_raise_on_error(raise_exp = True):
"""!Define behaviour on error (error() called)
- @param raise_exp True to raise ScriptException instead of calling error()
+ @param raise_exp True to raise ScriptException instead of calling
+ error()
+
+ @return current status
"""
global raise_on_error
+ tmp_raise = raise_on_error
raise_on_error = raise_exp
# interface to g.parser
More information about the grass-commit
mailing list