We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7d8b77 commit fadc1fbCopy full SHA for fadc1fb
bpython/curtsies.py
@@ -108,10 +108,12 @@ def process_event_and_paint(self, e):
108
self.scroll_offset += scrolled
109
raise
110
else:
111
- array, cursor_pos = self.paint()
112
- scrolled = self.window.render_to_terminal(array, cursor_pos)
113
- self.scroll_offset += scrolled
114
-
+ try:
+ array, cursor_pos = self.paint()
+ scrolled = self.window.render_to_terminal(array, cursor_pos)
+ self.scroll_offset += scrolled
115
+ except TypeError:
116
+ ...
117
def mainloop(self, interactive=True, paste=None):
118
if interactive:
119
# Add custom help command
0 commit comments