]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/imagebrowser.py
Remove const bool
[wxWidgets.git] / wxPython / wx / lib / imagebrowser.py
index 576d0bcfbd9232f2ba76b354e3f3edd24611041c..72b1346d53988036b1be18603a6acb83b413d915 100644 (file)
@@ -95,7 +95,10 @@ class ImageView(wx.Window):
         if image is None:
             return
 
-        bmp = image.ConvertToBitmap()
+        try:
+            bmp = image.ConvertToBitmap()
+        except:
+            return
 
         iwidth = bmp.GetWidth()   # dimensions of image file
         iheight = bmp.GetHeight()