Mercurial > cpython-lru_cache-weakref
diff Lib/cgi.py @ 22476:d77e748865ff legacy-trunk
tighten up except - only ValueError can be raised in this situation
| author | Skip Montanaro <skip@pobox.com> |
|---|---|
| date | Sat, 23 Mar 2002 05:50:17 +0000 |
| parents | b9815f4d8be3 |
| children | a9dd5e6d6805 |
line wrap: on
line diff
--- a/Lib/cgi.py Sat Mar 23 05:47:31 2002 +0000 +++ b/Lib/cgi.py Sat Mar 23 05:50:17 2002 +0000 @@ -506,7 +506,7 @@ 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'
