Also catch UnicodeDecodeError on Windows
This commit is contained in:
parent
9727d6c74f
commit
864b9870a5
@ -293,6 +293,9 @@ class _WindowsUserscriptRunner(_BaseUserscriptRunner):
|
|||||||
self.got_cmd.emit(line.rstrip())
|
self.got_cmd.emit(line.rstrip())
|
||||||
except OSError:
|
except OSError:
|
||||||
log.procs.exception("Failed to read command file!")
|
log.procs.exception("Failed to read command file!")
|
||||||
|
except UnicodeDecodeError as e:
|
||||||
|
log.misc.error("Invalid unicode in userscript output: {}"
|
||||||
|
.format(e))
|
||||||
|
|
||||||
super()._cleanup()
|
super()._cleanup()
|
||||||
self.finished.emit()
|
self.finished.emit()
|
||||||
|
Loading…
Reference in New Issue
Block a user