Skip to content
Snippets Groups Projects
Commit 7969e46b authored by eric pellegrini's avatar eric pellegrini
Browse files

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
Branches
Tags
1 merge request!29Bugfix handling analysis error when run from gui
Pipeline #4250 passed
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment