]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/MimeTypesManager.py
What the hell, let's spin up another full release
[wxWidgets.git] / wxPython / demo / MimeTypesManager.py
index 9689030c24dc49d89621910acfd9e83354360afb..c6e70cd263973241260a5f6734a68223ae65adf0 100644 (file)
@@ -195,7 +195,10 @@ class MimeTypesDemoPanel(wx.Panel):
         tsizer.Fit(self)
         
         # Populate the Known MIME types list with what is in the database
-        mtypes = wx.TheMimeTypesManager.EnumAllFileTypes()
+        try:
+            mtypes = wx.TheMimeTypesManager.EnumAllFileTypes()
+        except wx.PyAssertionError:
+            mtypes = []
         for mt in mtypes:
             self.mimelist.Append(mt)