]> 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 4dc89e25710f24b1de6c2aeca862a855707052d8..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)
 
@@ -339,4 +342,4 @@ For further information please consult the wxWindows documentation for
 if __name__ == '__main__':
     import sys,os
     import run
-    run.main(['', os.path.basename(sys.argv[0])])
+    run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])