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
geomultisens
gms_preprocessing
Commits
8f26cae3
Commit
8f26cae3
authored
Nov 02, 2017
by
Daniel Scheffler
Browse files
Fixed bad exception within process controller.
parent
3728956d
Pipeline
#1460
failed with stage
in 10 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gms_preprocessing/processing/process_controller.py
View file @
8f26cae3
...
...
@@ -353,6 +353,7 @@ class process_controller(object):
signal
.
signal
(
signal
.
SIGINT
,
self
.
stop
)
# enable clean shutdown possibility
# noinspection PyBroadException
try
:
if
self
.
job
.
profiling
:
from
pyinstrument
import
Profiler
...
...
@@ -401,19 +402,19 @@ class process_controller(object):
shutdown_loggers
()
except
Exception
as
e
:
except
:
if
self
.
job
.
profiling
:
self
.
profiler
.
stop
()
print
(
self
.
profiler
.
output_text
(
unicode
=
True
,
color
=
True
))
self
.
job
.
status
=
'failed'
self
.
update_DB_job_record
()
self
.
logger
.
error
(
'Execution failed with an error:'
,
e
)
if
not
self
.
job
.
disable_exception_handler
:
self
.
logger
.
error
(
e
)
self
.
logger
.
error
(
'Execution failed with an error:'
,
exc_info
=
Tru
e
)
shutdown_loggers
()
else
:
self
.
logger
.
error
(
'Execution failed with an error:'
)
shutdown_loggers
()
raise
...
...
Daniel Scheffler
@danschef
mentioned in commit
35118d3d
·
Feb 06, 2018
mentioned in commit
35118d3d
mentioned in commit 35118d3d37902a49dd89a2166ee2431afb2471b3
Toggle commit list
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