summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-10-17 16:21:35 (GMT)
committerGuido van Rossum <guido@python.org>2002-10-17 16:21:35 (GMT)
commitb39031587246c0c2dfc21271c1bbfb37dbfc748f (patch)
tree94e67dec3330c4771665f649bb00677cad8a51b6 /Lib
parentf66cccf506b935b2a38355f86ff676a8b6326faa (diff)
downloadcpython-b39031587246c0c2dfc21271c1bbfb37dbfc748f.zip
cpython-b39031587246c0c2dfc21271c1bbfb37dbfc748f.tar.gz
cpython-b39031587246c0c2dfc21271c1bbfb37dbfc748f.tar.bz2
Must catch TypeError from int(length).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/CGIHTTPServer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py
index 6c3e09e..b3f922b 100644
--- a/Lib/CGIHTTPServer.py
+++ b/Lib/CGIHTTPServer.py
@@ -234,7 +234,7 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
self.log_message("command: %s", cmdline)
try:
nbytes = int(length)
- except ValueError:
+ except (TypeError, ValueError):
nbytes = 0
files = popenx(cmdline, 'b')
fi = files[0]