Ver código fonte

wxGUI: add traceback to CheckPseudoDC()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40324 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 anos atrás
pai
commit
a658451314
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      gui/wxpython/gui_modules/mapdisp_window.py

+ 3 - 1
gui/wxpython/gui_modules/mapdisp_window.py

@@ -22,6 +22,7 @@ import time
 import math
 import sys
 import tempfile
+import traceback
 
 import wx
 
@@ -275,7 +276,8 @@ class BufferedWindow(MapWindow, wx.Window):
             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