[GRASS-SVN] r61946 - sandbox/martinl

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Sep 14 07:26:36 PDT 2014


Author: martinl
Date: 2014-09-14 07:26:36 -0700 (Sun, 14 Sep 2014)
New Revision: 61946

Modified:
   sandbox/martinl/print_module_parameters_csv.py
Log:
don't use ScriptError since it still differs in G70 and G71

Modified: sandbox/martinl/print_module_parameters_csv.py
===================================================================
--- sandbox/martinl/print_module_parameters_csv.py	2014-09-14 14:22:49 UTC (rev 61945)
+++ sandbox/martinl/print_module_parameters_csv.py	2014-09-14 14:26:36 UTC (rev 61946)
@@ -5,15 +5,16 @@
 
 from grass.script import task as gtask
 from grass.script.core import get_commands
-from grass.exceptions import ScriptError
+### from pygrass.exceptions import ScriptError
 
 def main():
 #    print '-' * 80
     for cmd in sorted(get_commands()[0]):
         try:
             task = gtask.grassTask(cmd)
-        except ScriptError:
-            pass
+        except:
+            import sys
+            sys.exit(e)
         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