Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Import API
Commits
95a789d9
Commit
95a789d9
authored
Apr 19, 2021
by
Matthias
Browse files
improve log message
parent
692c809c
Pipeline
#25033
passed with stages
in 2 minutes and 37 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
import_api_app/resources/WriteJobResultsToDrupal.py
View file @
95a789d9
...
...
@@ -163,7 +163,8 @@ def write_results(job_drupal_uuid, job_log_drupal_uuid, status, report):
current_app
.
logger
.
error
(
message
)
raise
ImportApiError
(
message
)
elif
response
.
status_code
==
500
:
message
=
'There was an internal server error: '
+
url
+
'. Check the logs for details.'
message
=
'There was an internal server error for '
+
url
+
': '
+
str
(
response
)
+
\
'. Check the logs for details.'
current_app
.
logger
.
error
(
message
)
raise
ImportApiError
(
message
)
else
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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