commit | b39031587246c0c2dfc21271c1bbfb37dbfc748f | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Oct 17 16:21:35 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Oct 17 16:21:35 2002 +0000 |
tree | 94e67dec3330c4771665f649bb00677cad8a51b6 | |
parent | f66cccf506b935b2a38355f86ff676a8b6326faa [diff] [blame] |
Must catch TypeError from int(length).
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 @@ self.log_message("command: %s", cmdline) try: nbytes = int(length) - except ValueError: + except (TypeError, ValueError): nbytes = 0 files = popenx(cmdline, 'b') fi = files[0]