[Python-checkins] python/dist/src/Lib CGIHTTPServer.py,1.28,1.29

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Thu, 17 Oct 2002 09:21:39 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv27193

Modified Files:
	CGIHTTPServer.py 
Log Message:
Must catch TypeError from int(length).

Index: CGIHTTPServer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/CGIHTTPServer.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** CGIHTTPServer.py	20 Aug 2002 20:07:10 -0000	1.28
--- CGIHTTPServer.py	17 Oct 2002 16:21:35 -0000	1.29
***************
*** 235,239 ****
              try:
                  nbytes = int(length)
!             except ValueError:
                  nbytes = 0
              files = popenx(cmdline, 'b')
--- 235,239 ----
              try:
                  nbytes = int(length)
!             except (TypeError, ValueError):
                  nbytes = 0
              files = popenx(cmdline, 'b')