[GRASS-SVN] r41347 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 8 06:45:24 EST 2010
Author: martinl
Date: 2010-03-08 06:45:23 -0500 (Mon, 08 Mar 2010)
New Revision: 41347
Modified:
grass/trunk/gui/wxpython/gui_modules/location_wizard.py
Log:
wxGUI:loc_wiz: track more errors on search
(merge r41345 from relbr64)
Modified: grass/trunk/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/location_wizard.py 2010-03-08 11:38:31 UTC (rev 41346)
+++ grass/trunk/gui/wxpython/gui_modules/location_wizard.py 2010-03-08 11:45:23 UTC (rev 41347)
@@ -1429,8 +1429,7 @@
try:
self.epsgcode, self.epsgdesc, self.epsgparams = \
self.epsglist.Search(index=[0,1,2], pattern=value)
-
- except IndexError: # -> no item found
+ except (IndexError, ValueError): # -> no item found
self.epsgcode = None
self.epsgdesc = self.epsgparams = ''
self.tcode.SetValue('')
More information about the grass-commit
mailing list