dabo Commit
Revision 2988
Date: 2007-03-26 13:21:12 -0700 (Mon, 26 Mar 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/2988

Changed:
U   trunk/dabo/lib/logger.py

Log:
Fixed the problem that was causing Dabo to fail when being run under pythonw on 
Windows and Linux. Previously we were only trapping AttributeError when calling 
the log object's flush(), but it was actually an IOError that was raised when 
trying to flush stdout under pythonw.

Diff:
Modified: trunk/dabo/lib/logger.py
===================================================================
--- trunk/dabo/lib/logger.py    2007-03-26 19:20:40 UTC (rev 2987)
+++ trunk/dabo/lib/logger.py    2007-03-26 20:21:12 UTC (rev 2988)
@@ -44,9 +44,9 @@
                # Flush the log entry to the file
                try:
                        self.LogObject.flush()
-               except AttributeError:
+               except (AttributeError, IOError):
                        pass
-               
+                       
        
        def _getCaption(self):
                try:




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to