Permalink
Browse files

do not explode if curses.curs_set(0) fails

  • Loading branch information...
1 parent 5d81044 commit 674bdbbdd802d8f84c49a301cd2ec63eed4d6112 @unbit unbit committed Jun 5, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 uwsgitop
View
@@ -58,7 +58,10 @@ curses.init_pair(4, curses.COLOR_YELLOW, curses.COLOR_BLACK)
screen.timeout(freq*1000)
atexit.register(game_over)
-curses.curs_set(0)
+try:
+ curses.curs_set(0)
+except:
+ pass
screen.clear()
def reqcount(a, b):

0 comments on commit 674bdbb

Please sign in to comment.