Commit fee3126e authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Catch curses.error instead of a non-existent global (PyChecker)

Edit comment
parent 40ea6177
......@@ -66,10 +66,10 @@ class Textbox:
if y < self.maxy or x < self.maxx:
# The try-catch ignores the error we trigger from some curses
# versions by trying to write into the lowest-rightmost spot
# in the self.window.
# in the window.
try:
self.win.addch(ch)
except ERR:
except curses.error:
pass
elif ch == ascii.SOH: # ^a
self.win.move(y, 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment