Fix the (now rare) tracebacks from curses.

This commit is contained in:
mathieui 2011-09-12 20:22:12 +02:00
parent 455a2746bc
commit d1bf1dfa53

View file

@ -64,7 +64,10 @@ class Win(object):
self._win = curses.newwin(height, width, y, x) self._win = curses.newwin(height, width, y, x)
else: else:
self._win.resize(height, width) 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): def resize(self, height, width, y, x):
""" """