dabo Commit
Revision 4268
Date: 2008-07-10 17:20:44 -0700 (Thu, 10 Jul 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4268

Changed:
U   trunk/dabo/ui/uiwx/dPdfWindow.py

Log:
I'm on Ubuntu 8.04 (hardy) now, and the first error I got after installing
wxPython 2.8.8.0 was a ValueError on trying to import wx.lib.pdfwin. I
reverted that try: block back to have a bare except, because it makes sense
in this case.


Diff:
Modified: trunk/dabo/ui/uiwx/dPdfWindow.py
===================================================================
--- trunk/dabo/ui/uiwx/dPdfWindow.py    2008-07-10 19:34:02 UTC (rev 4267)
+++ trunk/dabo/ui/uiwx/dPdfWindow.py    2008-07-11 00:20:44 UTC (rev 4268)
@@ -20,7 +20,8 @@
 try:
        import wx.lib.pdfwin as pdfwin
        PDFWindow = pdfwin.PDFWindow
-except (ImportError, AttributeError, WindowsError):
+except:
+       ## If there's any exception at all in importing pdfwin, use the dummy.
        class Dummy(object):
                _dummy = True
        PDFWindow = Dummy




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to