diff options
| author | Skip Montanaro <skip@pobox.com> | 2002-03-23 05:50:17 +0000 |
|---|---|---|
| committer | Skip Montanaro <skip@pobox.com> | 2002-03-23 05:50:17 +0000 |
| commit | db5d1444a1e2b0235634fcd307a7f960e66b02b0 (patch) | |
| tree | e5e0399a256d9651f1ac235239f8c3a0178239b0 /Lib | |
| parent | 3c643d8db3dbf58b9a75462d15359573964c57c7 (diff) | |
| download | cpython-git-db5d1444a1e2b0235634fcd307a7f960e66b02b0.tar.gz | |
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
diff --git a/Lib/cgi.py b/Lib/cgi.py index 823dde2b6e..db91ec6d2e 100755 --- a/Lib/cgi.py +++ b/Lib/cgi.py @@ -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' |
