Commit 3c643d8d authored by Skip Montanaro's avatar Skip Montanaro

tighten up except - int() only raises ValueError

parent 6ec967d0
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment