mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Catch UnicodeEncodeError when passing unicode char as qemu options
Fix #292
This commit is contained in:
1 parent
1a04417e84
commit
34e64fe5d8
1 file changed
+1
-1
@@ -853,7 +853,7 @@ class QemuVM(BaseVM):
|
||||
|
||||
self.status = "started"
|
||||
monitor_process(self._process, self._termination_callback)
|
||||
except (OSError, subprocess.SubprocessError) as e:
|
||||
except (OSError, subprocess.SubprocessError, UnicodeEncodeError) as e:
|
||||
stdout = self.read_stdout()
|
||||
log.error("Could not start QEMU {}: {}\n{}".format(self.qemu_path, e, stdout))
|
||||
raise QemuError("Could not start QEMU {}: {}\n{}".format(self.qemu_path, e, stdout))
|
||||
|
||||
Reference in new issue
Block a user