CVS: Products/ExternalEditor/Plugins - excel.py:1.6
Chris McDonough <[email protected]>
| Newsgroups | gmane.comp.web.zope.public-cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs-repository/Products/ExternalEditor/Plugins
In directory cvs.zope.org:/tmp/cvs-serv16275/Plugins
Modified Files:
excel.py
Log Message:
Prepare for 0.9 release.
=== Products/ExternalEditor/Plugins/excel.py 1.5 => 1.6 ===
--- Products/ExternalEditor/Plugins/excel.py:1.5 Thu Mar 3 19:20:14 2005
+++ Products/ExternalEditor/Plugins/excel.py Mon Jun 20 19:09:42 2005
@@ -82,7 +82,20 @@
if why.endswith('Path') or why.endswith('Name'):
return 1
raise
-
+ except TypeError, why:
+ # Again, who knows why this happens but the enumeration of
+ # workbooks can occasionally lead to a type error, e.g.:
+ # Traceback (most recent call last):
+ # File "zopeedit.py", line 764, in ?
+ # File "zopeedit.py", line 372, in launch
+ # File "Plugins\excel.pyc", line 57, in isAlive
+ # File "win32com\client\dynamic.pyc", line 210, in __getitem__
+ # TypeError: This object does not support enumeration
+ # We ignore this and return true.
+ why = str(why)
+ if why.endswith('enumeration'):
+ return 1
+ raise
def test():
import os
_______________________________________________
Zope-CVS maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs
Zope CVS instructions: http://dev.zope.org/CVS