[GRASS-SVN] r60568 - grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 28 14:52:12 PDT 2014


Author: neteler
Date: 2014-05-28 14:52:12 -0700 (Wed, 28 May 2014)
New Revision: 60568

Modified:
   grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface/module.py
Log:
pygrass: fix error message

Modified: grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface/module.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface/module.py	2014-05-28 21:51:40 UTC (rev 60567)
+++ grass/branches/releasebranch_7_0/lib/python/pygrass/modules/interface/module.py	2014-05-28 21:52:12 UTC (rev 60568)
@@ -368,7 +368,7 @@
                 if ((k in self.inputs and self.inputs[k].value is None) or
                         (k in self.outputs and self.outputs[k].value is None)):
                     msg = "Required parameter <%s> not set."
-                    raise ParameterError(msg % key)
+                    raise ParameterError(msg % k)
             return self.run()
 
 



More information about the grass-commit mailing list