From db5d1444a1e2b0235634fcd307a7f960e66b02b0 Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Sat, 23 Mar 2002 05:50:17 +0000 Subject: [PATCH] tighten up except - only ValueError can be raised in this situation --- Lib/cgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/cgi.py b/Lib/cgi.py index 823dde2b6ea..db91ec6d2e4 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'