mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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)
|
||||
try:
|
||||
nbytes = int(length)
|
||||
except:
|
||||
except ValueError:
|
||||
nbytes = 0
|
||||
files = popenx(cmdline, 'b')
|
||||
fi = files[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue