Skip to content

Commit fadc1fb

Browse files
authored
Fixed bug with sys.stdin.readline()
1 parent f7d8b77 commit fadc1fb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

bpython/curtsies.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,12 @@ def process_event_and_paint(self, e):
108108
self.scroll_offset += scrolled
109109
raise
110110
else:
111-
array, cursor_pos = self.paint()
112-
scrolled = self.window.render_to_terminal(array, cursor_pos)
113-
self.scroll_offset += scrolled
114-
111+
try:
112+
array, cursor_pos = self.paint()
113+
scrolled = self.window.render_to_terminal(array, cursor_pos)
114+
self.scroll_offset += scrolled
115+
except TypeError:
116+
...
115117
def mainloop(self, interactive=True, paste=None):
116118
if interactive:
117119
# Add custom help command

0 commit comments

Comments
 (0)