Skip to content
Snippets Groups Projects
Commit 36bb8d18 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

Merge branch 'execute_prepare_fix' into 'master'

Prepare algorithm on execution

See merge request !21
parents 5bc1af63 6548af94
No related branches found
No related tags found
1 merge request!21Prepare algorithm on execution
Pipeline #23986 passed
......@@ -248,6 +248,20 @@ def main():
s = process_traceback(tb, executor.prefix)
raise UserError("%s%s: %s" % (s, type(e).__name__, e))
# Prepare the algorithm
try:
status = executor.prepare()
if not status:
raise UserError("Could not prepare algorithm (returned False)")
except (UserError, MemoryError):
raise
except Exception as e:
import traceback
exc_type, exc_value, exc_traceback = sys.exc_info()
tb = traceback.extract_tb(exc_traceback)
s = process_traceback(tb, executor.prefix)
raise UserError("%s%s: %s" % (s, type(e).__name__, e))
# Execute the code
try:
status = executor.process()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment