Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f272517

Browse files
committed
Dealing with broken pipe (not filling terminal with traceback in that case)
1 parent 6945a0a commit f272517

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

thirdparty/ansistrm/ansistrm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def emit(self, record):
6262
self.flush()
6363
except (KeyboardInterrupt, SystemExit):
6464
raise
65+
except IOError:
66+
pass
6567
except:
6668
self.handleError(record)
6769

0 commit comments

Comments
 (0)