diff options
Diffstat (limited to 'play.py')
-rwxr-xr-x | play.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -118,8 +118,11 @@ class Window: def insstr(self, s): if not s: return - self.w.addstr(s[:-1]) - self.w.hline(ord(s[-1]), 1) # insch() work-around + try: + self.w.addstr(s[:-1]) + self.w.hline(ord(s[-1]), 1) # insch() work-around + except: + pass def __getattr__(self, name): return getattr(self.w, name) |