Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
jflow
Commits
990f6173
Commit
990f6173
authored
Feb 23, 2015
by
Jerome Mariette
Browse files
fix a bug with error retreiving
parent
b5839538
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jflow/workflow.py
View file @
990f6173
...
...
@@ -536,8 +536,11 @@ class Workflow(threading.Thread):
error
[
"title"
]
=
lines
[
line_idx
].
rstrip
()
error
[
"msg"
]
=
list
()
error
[
"traceback"
]
=
list
()
line_idx
+=
2
# skip : "Traceback (most recent call last):"
# Traceback
# skip all lines before the traceback
while
not
lines
[
line_idx
].
startswith
(
"Traceback"
):
line_idx
+=
1
# skip : "Traceback (most recent call last):"
line_idx
+=
1
while
lines
[
line_idx
]
!=
lines
[
line_idx
].
lstrip
():
error
[
"traceback"
].
append
({
"location"
:
lines
[
line_idx
].
strip
(),
...
...
@@ -546,7 +549,10 @@ class Workflow(threading.Thread):
line_idx
+=
2
# Error message
while
line_idx
<
len
(
lines
)
and
not
lines
[
line_idx
].
strip
().
startswith
(
"##"
):
error
[
"msg"
].
append
(
lines
[
line_idx
].
strip
().
split
(
":"
,
1
)[
1
][
1
:]
)
try
:
error
[
"msg"
].
append
(
lines
[
line_idx
].
strip
().
split
(
":"
,
1
)[
1
][
1
:]
)
except
:
error
[
"msg"
].
append
(
lines
[
line_idx
].
strip
()
)
line_idx
+=
1
line_idx
-=
1
line_idx
+=
1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment