[ZPT] CVS: Releases/Zope/lib/python/ZTUtils - Iterator.py:1.8

Evan Simpson evan@zope.com
Thu, 26 Sep 2002 13:29:46 -0400


Update of /cvs-repository/Releases/Zope/lib/python/ZTUtils
In directory cvs.zope.org:/tmp/cvs-serv15952/lib/python/ZTUtils

Modified Files:
	Iterator.py 
Log Message:
Fix Collector #573


=== Releases/Zope/lib/python/ZTUtils/Iterator.py 1.7 => 1.8 ===
--- Releases/Zope/lib/python/ZTUtils/Iterator.py:1.7	Wed Aug 14 18:10:12 2002
+++ Releases/Zope/lib/python/ZTUtils/Iterator.py	Thu Sep 26 13:29:45 2002
@@ -135,7 +135,7 @@
 
     def _supports(self, ob):
         try: ob[0]
-        except TypeError: return 0
+        except (TypeError, AttributeError): return 0
         except: pass
         return 1