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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 8 15:51:15 EST 2010


Author: martinl
Date: 2010-01-08 15:51:15 -0500 (Fri, 08 Jan 2010)
New Revision: 40325

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py
Log:
wxGUI: add traceback to CheckPseudoDC()
       (merge r40324 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py	2010-01-08 20:46:31 UTC (rev 40324)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py	2010-01-08 20:51:15 UTC (rev 40325)
@@ -22,6 +22,7 @@
 import math
 import sys
 import tempfile
+import traceback
 
 import wx
 
@@ -275,7 +276,8 @@
             self.pdc.BeginDrawing()
             self.pdc.SetBackground(wx.Brush(self.GetBackgroundColour()))
             self.pdc.BeginDrawing()
-        except:
+        except StandardError, e:
+            traceback.print_exc(file = sys.stderr)
             return False
         
         return True



More information about the grass-commit mailing list