#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:
parent
b58182a970
commit
e9ebfdea3a
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user