summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xplay.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/play.py b/play.py
index c9e0929..e210de4 100755
--- a/play.py
+++ b/play.py
@@ -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)