[GRASS-SVN] r52441 - grass-addons/grass7/gui/wxpython/wx.vnet/vnet

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 24 04:50:33 PDT 2012


Author: turek
Date: 2012-07-24 04:50:32 -0700 (Tue, 24 Jul 2012)
New Revision: 52441

Modified:
   grass-addons/grass7/gui/wxpython/wx.vnet/vnet/dialogs.py
Log:
vnet: Init settings bug fix

Modified: grass-addons/grass7/gui/wxpython/wx.vnet/vnet/dialogs.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.vnet/vnet/dialogs.py	2012-07-24 10:45:35 UTC (rev 52440)
+++ grass-addons/grass7/gui/wxpython/wx.vnet/vnet/dialogs.py	2012-07-24 11:50:32 UTC (rev 52441)
@@ -1158,14 +1158,13 @@
 
         for init in initSettings:
             try:
-                val = UserSettings.Get(dict = UserSettings.userSettings, 
-                                       group ='vnet',
+                val = UserSettings.Get(group ='vnet',
                                        key = init[0],
                                        subkey =init[1])
                 if type(val) != type(init[2]):
-                    raise ValueError
+                    raise ValueError()
 
-            except KeyError, ValueError:              
+            except (KeyError, ValueError):              
                 UserSettings.Append(dict = UserSettings.userSettings, 
                                     group ='vnet',
                                     key = init[0],



More information about the grass-commit mailing list