summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2002-03-23 05:47:31 (GMT)
committerSkip Montanaro <skip@pobox.com>2002-03-23 05:47:31 (GMT)
commit3c643d8db3dbf58b9a75462d15359573964c57c7 (patch)
tree2f8762c4b1ccbfb389f99084d20417723bc9c477
parent6ec967d066a9de43244a965fa4c5421f279b77f4 (diff)
downloadcpython-3c643d8db3dbf58b9a75462d15359573964c57c7.zip
cpython-3c643d8db3dbf58b9a75462d15359573964c57c7.tar.gz
cpython-3c643d8db3dbf58b9a75462d15359573964c57c7.tar.bz2
tighten up except - int() only raises ValueError
-rw-r--r--Lib/CGIHTTPServer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py
index 7a7e075..7bb7467 100644
--- a/Lib/CGIHTTPServer.py
+++ b/Lib/CGIHTTPServer.py
@@ -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]