Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ignore curs_set exceptions

  • Loading branch information...
commit 3d121dea4e062089a1d8db76f83e153b03623a4d 1 parent a16e650
@themoken authored
Showing with 12 additions and 3 deletions.
  1. +12 −3 canto/input.py
View
15 canto/input.py
@@ -98,10 +98,19 @@ def input(cfg, prompt):
temp = signal.getsignal(signal.SIGALRM)
signal.signal(signal.SIGALRM, signal.SIG_IGN)
-
- curses.curs_set(1)
+
+ # These curs_set calls can except, but we shouldn't care
+ try:
+ curses.curs_set(1)
+ except:
+ pass
+
term = InputBox(cfg.msg).edit()
- curses.curs_set(0)
+
+ try:
+ curses.curs_set(0)
+ except:
+ pass
signal.signal(signal.SIGALRM, temp)
signal.alarm(1)
Please sign in to comment.
Something went wrong with that request. Please try again.