[GRASS-SVN] r58951 - grass/trunk/lib/python/pygrass/messages

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 7 17:33:53 PST 2014


Author: huhabla
Date: 2014-02-07 17:33:53 -0800 (Fri, 07 Feb 2014)
New Revision: 58951

Modified:
   grass/trunk/lib/python/pygrass/messages/__init__.py
Log:
Raise on error in get_msgr() function.


Modified: grass/trunk/lib/python/pygrass/messages/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/messages/__init__.py	2014-02-08 00:42:45 UTC (rev 58950)
+++ grass/trunk/lib/python/pygrass/messages/__init__.py	2014-02-08 01:33:53 UTC (rev 58951)
@@ -317,7 +317,7 @@
         time.sleep(1)
 
 
-def get_msgr(_instance=[None, ]):
+def get_msgr(_instance=[None, ], raise_on_error=False):
     """!Return a Messenger instance.
 
     @return the Messenger instance.
@@ -332,7 +332,7 @@
         False
     """
     if not _instance[0]:
-        _instance[0] = Messenger()
+        _instance[0] = Messenger(raise_on_error)
     return _instance[0]
 
 



More information about the grass-commit mailing list