[GRASS-SVN] r38600 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 3 11:44:10 EDT 2009


Author: martinl
Date: 2009-08-03 11:44:10 -0400 (Mon, 03 Aug 2009)
New Revision: 38600

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py
Log:
fix UnboundLocalError
    (merge from trunk, r38599)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py	2009-08-03 15:36:17 UTC (rev 38599)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/globalvar.py	2009-08-03 15:44:10 UTC (rev 38600)
@@ -41,7 +41,10 @@
         if map(int, version.split('.')) < minVersion:
             raise ValueError('Your wxPython version is %s.%s.%s.%s' % tuple(version.split('.')))
 
-    except (ImportError, ValueError, wxversion.VersionError), e:
+    except ImportError, e:
+        print >> sys.stderr, 'ERROR: wxGUI requires wxPython. %s' % str(e)
+        sys.exit(1)
+    except (ValueError, wxversion.VersionError), e:
         print >> sys.stderr, 'ERROR: wxGUI requires wxPython >= %d.%d.%d.%d. ' % tuple(minVersion) + \
             '%s. Detailed information in README file.' % (str(e))
         sys.exit(1)



More information about the grass-commit mailing list