Skip to content

Commit

Permalink
Ignore errors during flush, similar to the base
Browse files Browse the repository at this point in the history
class handle method.

Change-Id: I6b4ba7c20e9b13afa62704fb879e69550c68ad17
Closes-Bug: 1697548
  • Loading branch information
cijohnson committed Jun 12, 2017
1 parent 870ea53 commit 37ba4e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/config/common/vnc_cgitb.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ def handle(self, info=None):
doc = local_buf.getvalue()
local_buf.close()
self.file.write(mask_password(doc))
self.file.flush()
try:
self.file.flush()
except:
# Ignore errors during flush.
pass


handler = Hook(format='text').handle
Expand Down

0 comments on commit 37ba4e9

Please sign in to comment.