#8420: Fix traceback on 404 in ChunkedGlibHTTPRequestHandler

self._cleanup does the self._file.close() anyway if the file exists.
The self._file.close() removed here is redundant, and will always
fail on file not found, which is handled in send_head by returning
None for self._file.
This commit is contained in:
Morgan Collett 2008-09-10 22:17:09 +02:00
parent b58182a970
commit e9ebfdea3a

View File

@ -97,7 +97,6 @@ class ChunkedGlibHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
gobject.IO_ERR,
self._send_next_chunk)
else:
self._file.close()
self._cleanup()
def _send_next_chunk(self, source, condition):