mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
tighten up except - int() only raises ValueError
This commit is contained in:
parent
6ec967d066
commit
3c643d8db3
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||||
self.log_message("command: %s", cmdline)
|
self.log_message("command: %s", cmdline)
|
||||||
try:
|
try:
|
||||||
nbytes = int(length)
|
nbytes = int(length)
|
||||||
except:
|
except ValueError:
|
||||||
nbytes = 0
|
nbytes = 0
|
||||||
files = popenx(cmdline, 'b')
|
files = popenx(cmdline, 'b')
|
||||||
fi = files[0]
|
fi = files[0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue