Commit db5d1444 authored by Skip Montanaro's avatar Skip Montanaro

tighten up except - only ValueError can be raised in this situation

parent 3c643d8d
......@@ -506,7 +506,7 @@ class FieldStorage:
if self.headers.has_key('content-length'):
try:
clen = int(self.headers['content-length'])
except:
except ValueError:
pass
if maxlen and clen > maxlen:
raise ValueError, 'Maximum content length exceeded'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment