diff --git a/virtinst/cli.py b/virtinst/cli.py index 111dfb61..b506b4e8 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -132,6 +132,8 @@ class VirtStreamHandler(logging.StreamHandler): self.flush() except (KeyboardInterrupt, SystemExit): raise + except (UnicodeError, TypeError): + stream.write((fs % msg).encode("utf-8")) except Exception: self.handleError(record)