diff --git a/aqt/main.py b/aqt/main.py index a6d1f0960..7f2af17a1 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -981,7 +981,10 @@ will be lost. Continue?""")) buf += ">>> %s\n" % line else: buf += "... %s\n" % line - frm.log.appendPlainText(buf + (self._output or "")) + try: + frm.log.appendPlainText(buf + (self._output or "")) + except UnicodeDecodeError: + frm.log.appendPlainText(_("")) frm.log.ensureCursorVisible() # System specific code