[GRASS-SVN] r41345 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 8 06:33:41 EST 2010
Author: martinl
Date: 2010-03-08 06:33:41 -0500 (Mon, 08 Mar 2010)
New Revision: 41345
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py
Log:
wxGUI:loc_wiz: track more errors on search
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py 2010-03-08 11:29:38 UTC (rev 41344)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py 2010-03-08 11:33:41 UTC (rev 41345)
@@ -1434,8 +1434,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