summaryrefslogtreecommitdiffstats
path: root/glances/outputs/glances_curses.py
diff options
context:
space:
mode:
Diffstat (limited to 'glances/outputs/glances_curses.py')
-rw-r--r--glances/outputs/glances_curses.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/glances/outputs/glances_curses.py b/glances/outputs/glances_curses.py
index ff07a642..87764316 100644
--- a/glances/outputs/glances_curses.py
+++ b/glances/outputs/glances_curses.py
@@ -869,12 +869,16 @@ class _GlancesCurses(object):
y = display_y
for m in plugin_stats['msgdict']:
# New line
- if m['msg'].startswith('\n'):
- # Go to the next line
- y += 1
- # Return to the first column
- x = display_x
- continue
+ try:
+ if m['msg'].startswith('\n'):
+ # Go to the next line
+ y += 1
+ # Return to the first column
+ x = display_x
+ continue
+ except:
+ # Avoid exception (see issue #1692)
+ pass
# Do not display outside the screen
if x < 0:
continue