[GRASS-SVN] r61977 - sandbox/martinl
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Sep 15 08:17:57 PDT 2014
Author: martinl
Date: 2014-09-15 08:17:57 -0700 (Mon, 15 Sep 2014)
New Revision: 61977
Modified:
sandbox/martinl/print_module_parameters_csv.py
Log:
restore ScriptError (fixed in r61959)
Modified: sandbox/martinl/print_module_parameters_csv.py
===================================================================
--- sandbox/martinl/print_module_parameters_csv.py 2014-09-15 08:44:36 UTC (rev 61976)
+++ sandbox/martinl/print_module_parameters_csv.py 2014-09-15 15:17:57 UTC (rev 61977)
@@ -5,14 +5,14 @@
from grass.script import task as gtask
from grass.script.core import get_commands
-### from pygrass.exceptions import ScriptError
+from grass.exceptions import ScriptError
def main():
# print '-' * 80
for cmd in sorted(get_commands()[0]):
try:
task = gtask.grassTask(cmd)
- except:
+ except ScriptError as e:
import sys
sys.exit(e)
if task.get_name() == 'g.parser': # special case
More information about the grass-commit
mailing list