[GRASS-SVN] r61839 - sandbox/martinl
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Sep 7 23:10:28 PDT 2014
Author: martinl
Date: 2014-09-07 23:10:28 -0700 (Sun, 07 Sep 2014)
New Revision: 61839
Modified:
sandbox/martinl/print_module_parameters_csv.py
Log:
catch ScriptError
Modified: sandbox/martinl/print_module_parameters_csv.py
===================================================================
--- sandbox/martinl/print_module_parameters_csv.py 2014-09-08 03:14:31 UTC (rev 61838)
+++ sandbox/martinl/print_module_parameters_csv.py 2014-09-08 06:10:28 UTC (rev 61839)
@@ -5,11 +5,15 @@
from grass.script import task as gtask
from grass.script.core import get_commands
+from grass.exceptions import ScriptError
def main():
# print '-' * 80
for cmd in sorted(get_commands()[0]):
- task = gtask.grassTask(cmd)
+ try:
+ task = gtask.grassTask(cmd)
+ except ScriptError:
+ pass
if task.get_name() == 'g.parser': # special case
print task.get_name()
for f in task.get_options()['flags']:
More information about the grass-commit
mailing list