Skip to content

Commit 55382bf

Browse files
committed
Really catch broken pipe in pager.
1 parent c3e2b60 commit 55382bf

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)