Commit 7969e46b authored by eric pellegrini's avatar eric pellegrini

Merge branch 'bugfix-handling_analysis_error_when_run_from_gui' into 'develop'

Bugfix handling analysis error when run from gui

See merge request !29
parents 4fe88cc8 d206af09
Pipeline #4250 passed with stages
in 30 minutes and 58 seconds
......@@ -119,11 +119,15 @@ class JobPlugin(ComponentPlugin):
else:
startupinfo = None
subprocess.check_output([sys.executable, filename],stderr=subprocess.STDOUT)
time.sleep(1)
try:
subprocess.check_output([sys.executable, filename],stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
message = e.output
else:
message = None
PUBLISHER.sendMessage("msg_start_job",message=None)
time.sleep(1)
PUBLISHER.sendMessage("msg_start_job",message=message)
def on_save(self, event=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment