summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-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'