[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate/sequence - SortEx.py:1.6
Jeremy Hylton
jeremy@zope.com
Tue, 24 Sep 2002 18:06:28 -0400
Update of /cvs-repository/Zope/lib/python/DocumentTemplate/sequence
In directory cvs.zope.org:/tmp/cvs-serv17958
Modified Files:
SortEx.py
Log Message:
Fix two-exception except clause.
caught by pychecker.
=== Zope/lib/python/DocumentTemplate/sequence/SortEx.py 1.5 => 1.6 ===
--- Zope/lib/python/DocumentTemplate/sequence/SortEx.py:1.5 Wed Aug 14 18:29:53 2002
+++ Zope/lib/python/DocumentTemplate/sequence/SortEx.py Tue Sep 24 18:06:27 2002
@@ -98,7 +98,8 @@
try:
if mapping: akey = v[sk]
else: akey = getattr(v, sk)
- except AttributeError, KeyError: akey = None
+ except (AttributeError, KeyError):
+ akey = None
if not basic_type(akey):
try: akey = akey()
except: pass