mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Must catch TypeError from int(length).
This commit is contained in:
parent
f66cccf506
commit
b390315872
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue