diff options
author | Skip Montanaro <skip@pobox.com> | 2002-03-23 05:50:17 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2002-03-23 05:50:17 (GMT) |
commit | db5d1444a1e2b0235634fcd307a7f960e66b02b0 (patch) | |
tree | e5e0399a256d9651f1ac235239f8c3a0178239b0 /Lib | |
parent | 3c643d8db3dbf58b9a75462d15359573964c57c7 (diff) | |
download | cpython-db5d1444a1e2b0235634fcd307a7f960e66b02b0.zip cpython-db5d1444a1e2b0235634fcd307a7f960e66b02b0.tar.gz cpython-db5d1444a1e2b0235634fcd307a7f960e66b02b0.tar.bz2 |
tighten up except - only ValueError can be raised in this situation
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/cgi.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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' |