[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPRequest.py:1.68

Florent Guillaume fg@nuxeo.com
Sat, 29 Jun 2002 18:12:50 -0400


Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv4536

Modified Files:
	HTTPRequest.py 
Log Message:
Fixed untrapped SystemError in codec lookup if someone had a form
parameter like "description:test" where test is a codec that's
apparently registered but not found.

(description:test was actually a typo in CMF's topic_editTopic.py)


=== Zope/lib/python/ZPublisher/HTTPRequest.py 1.67 => 1.68 ===
     try:
         codecs.lookup(x)
-    except LookupError:
+    except (LookupError, SystemError):
         return 0
     else:
         return 1