diff options
author | Skip Montanaro <skip@pobox.com> | 2002-03-23 05:47:31 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2002-03-23 05:47:31 (GMT) |
commit | 3c643d8db3dbf58b9a75462d15359573964c57c7 (patch) | |
tree | 2f8762c4b1ccbfb389f99084d20417723bc9c477 | |
parent | 6ec967d066a9de43244a965fa4c5421f279b77f4 (diff) | |
download | cpython-3c643d8db3dbf58b9a75462d15359573964c57c7.zip cpython-3c643d8db3dbf58b9a75462d15359573964c57c7.tar.gz cpython-3c643d8db3dbf58b9a75462d15359573964c57c7.tar.bz2 |
tighten up except - int() only raises ValueError
-rw-r--r-- | Lib/CGIHTTPServer.py | 2 |
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] |