mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-29 20:21:35 +03:00
Add except for issue #392
This commit is contained in:
parent
8bb7523b94
commit
fcebf00f81
@ -248,9 +248,15 @@ class GlancesCurses(object):
|
||||
|
||||
def end(self):
|
||||
"""Shutdown the curses window."""
|
||||
curses.echo()
|
||||
curses.nocbreak()
|
||||
curses.curs_set(1)
|
||||
if hasattr(curses, 'echo'):
|
||||
curses.echo()
|
||||
if hasattr(curses, 'nocbreak'):
|
||||
curses.nocbreak()
|
||||
if hasattr(curses, 'curs_set'):
|
||||
try:
|
||||
curses.curs_set(1)
|
||||
except Exception:
|
||||
pass
|
||||
curses.endwin()
|
||||
|
||||
def display(self, stats, cs_status="None"):
|
||||
|
Loading…
Reference in New Issue
Block a user