Dealing with broken pipe (not filling terminal with traceback in that case)

This commit is contained in:
Miroslav Stampar 2014-09-22 22:18:08 +02:00
parent 6945a0a570
commit f272517cd2

View File

@ -62,6 +62,8 @@ class ColorizingStreamHandler(logging.StreamHandler):
self.flush() self.flush()
except (KeyboardInterrupt, SystemExit): except (KeyboardInterrupt, SystemExit):
raise raise
except IOError:
pass
except: except:
self.handleError(record) self.handleError(record)