Skip to content
Snippets Groups Projects
Unverified Commit fd031cdf authored by Nick Draper's avatar Nick Draper Committed by GitHub
Browse files

Merge pull request #27403 from mantidproject/fix_unix_output_unicode

Fix issue with scripts containing unicode characters on unix systems
parents 11b8815e 5b79e336
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,11 @@ class WriteToSignal(QObject):
self.sig_write_received.emit("Error: Unable to write to the console of the process.\n"
"This error is not related to your script's execution.\n"
"Original error: {}\n\n".format(str(e)))
except UnicodeEncodeError:
"""
Scripts containing unicode characters could fail to run if mantid is not started from the
terminal on unix systems. The script runs fine if this exception is caught and discarded.
"""
pass
# always write to the message log
self.sig_write_received.emit(txt)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment