Merge pull request #445 from noahfx/fix/emoji/crash

Fix crash when submission page contains non standard characters
This commit is contained in:
Michael Lazar
2017-09-27 22:00:01 -04:00
committed by GitHub

View File

@@ -270,9 +270,13 @@ class Terminal(object):
# Trying to draw outside of the screen bounds
return
try:
text = self.clean(text, n_cols)
params = [] if attr is None else [attr]
window.addstr(row, col, text, *params)
except curses.error as e:
_logger.warning('add_line raised an exception')
_logger.exception(str(e))
@staticmethod
def add_space(window):