mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 13:18:35 +00:00
A quick fix for an error we are seeing in testing.
This commit is contained in:
parent
212be423f7
commit
1446302a04
@ -786,7 +786,10 @@ class WorkflowService(object):
|
||||
for frameSummary in traceback.extract_tb(tb):
|
||||
if frameSummary.filename == '<template>':
|
||||
line_number = frameSummary.lineno
|
||||
error_line = documentation.splitlines()[line_number - 1]
|
||||
lines = documentation.splitlines()
|
||||
error_line = ""
|
||||
if len(lines) > line_number:
|
||||
error_line = lines[line_number - 1]
|
||||
raise ApiError.from_task(code="template_error", message="Jinja Template Error: %s" % str(te),
|
||||
task=spiff_task, line_number=line_number, error_line=error_line)
|
||||
except TypeError as te:
|
||||
|
Loading…
x
Reference in New Issue
Block a user