Skip to content

Commit 9fe95b6

Browse files
committed
Really catch broken pipe in pager.
1 parent 5d446b7 commit 9fe95b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bpython/pager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def page(data, use_internal=False):
5959
# pager command not found, fall back to internal pager
6060
page_internal(data)
6161
return
62+
except IOError, e:
6263
if e.errno != errno.EPIPE:
6364
raise
6465
while True:

0 commit comments

Comments
 (0)