[GRASS-SVN] r59937 - grass/branches/releasebranch_7_0/temporal/t.register

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Apr 24 07:09:51 PDT 2014


Author: martinl
Date: 2014-04-24 07:09:51 -0700 (Thu, 24 Apr 2014)
New Revision: 59937

Modified:
   grass/branches/releasebranch_7_0/temporal/t.register/t.register.py
Log:
t.register: catch exception and print fatal error
            (merge r59908 from trunk)


Modified: grass/branches/releasebranch_7_0/temporal/t.register/t.register.py
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.register/t.register.py	2014-04-24 14:08:56 UTC (rev 59936)
+++ grass/branches/releasebranch_7_0/temporal/t.register/t.register.py	2014-04-24 14:09:51 UTC (rev 59937)
@@ -124,5 +124,8 @@
 
 if __name__ == "__main__":
     options, flags = grass.parser()
- 
-    tgis.profile_function(main)
+
+    try:
+        tgis.profile_function(main)
+    except StandardError, e:
+        grass.fatal(e)



More information about the grass-commit mailing list