summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2002-03-23 05:50:17 (GMT)
committerSkip Montanaro <skip@pobox.com>2002-03-23 05:50:17 (GMT)
commitdb5d1444a1e2b0235634fcd307a7f960e66b02b0 (patch)
treee5e0399a256d9651f1ac235239f8c3a0178239b0
parent3c643d8db3dbf58b9a75462d15359573964c57c7 (diff)
downloadcpython-db5d1444a1e2b0235634fcd307a7f960e66b02b0.zip
cpython-db5d1444a1e2b0235634fcd307a7f960e66b02b0.tar.gz
cpython-db5d1444a1e2b0235634fcd307a7f960e66b02b0.tar.bz2
tighten up except - only ValueError can be raised in this situation
-rwxr-xr-xLib/cgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index 823dde2..db91ec6 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'