[GRASS-SVN] r60940 - grass/trunk/lib/python/pygrass/modules/interface
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jun 24 01:11:24 PDT 2014
Author: zarch
Date: 2014-06-24 01:11:24 -0700 (Tue, 24 Jun 2014)
New Revision: 60940
Modified:
grass/trunk/lib/python/pygrass/modules/interface/flag.py
Log:
Set the flag description as optional
Modified: grass/trunk/lib/python/pygrass/modules/interface/flag.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/interface/flag.py 2014-06-24 08:07:31 UTC (rev 60939)
+++ grass/trunk/lib/python/pygrass/modules/interface/flag.py 2014-06-24 08:11:24 UTC (rev 60940)
@@ -20,7 +20,7 @@
self.name = diz['name']
self.special = True if self.name in (
'verbose', 'overwrite', 'quiet', 'run') else False
- self.description = diz['description']
+ self.description = diz.get('description', None)
self.default = diz.get('default', None)
self.guisection = diz.get('guisection', None)
More information about the grass-commit
mailing list