From d1bf1dfa53c995008d1f0e0e6dcf9db7fb36747f Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 12 Sep 2011 20:22:12 +0200 Subject: Fix the (now rare) tracebacks from curses. --- src/windows.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/windows.py b/src/windows.py index 4e464a75..e942407f 100644 --- a/src/windows.py +++ b/src/windows.py @@ -64,7 +64,10 @@ class Win(object): self._win = curses.newwin(height, width, y, x) else: self._win.resize(height, width) - self._win.mvwin(y, x) + try: + self._win.mvwin(y, x) + except: + log.debug('DEBUG: mvwin returned ERR. Please investigate') def resize(self, height, width, y, x): """ -- cgit v1.2.3