mirror of https://github.com/python/cpython.git
Must catch TypeError from int(length).
This commit is contained in:
parent
f66cccf506
commit
b390315872
|
@ -234,7 +234,7 @@ def run_cgi(self):
|
|||
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…
Reference in New Issue