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
0a9876d6
Commit
0a9876d6
authored
May 10, 2021
by
Jonas Waeber
Browse files
Improve exception message
parent
f57b499c
Pipeline
#26156
passed with stages
in 2 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
import_api_app/resources/UpdateRecordSet.py
View file @
0a9876d6
...
...
@@ -248,7 +248,8 @@ class UpdateRecordSet(Resource):
'exception'
:
msg
},
503
except
Exception
as
ex
:
msg
=
'Could not import '
+
record_set_id
+
' (Unknown Exception): '
+
str
(
ex
)
msg
=
f
'Could not import
{
result_topic_value
.
get
(
"field_memobase_id"
)
}
'
\
f
'(Drupal UUID:
{
record_set_id
}
) (Unknown Exception): '
+
str
(
ex
)
current_app
.
logger
.
error
(
f
"
{
msg
}
\n
{
traceback
.
format_exc
()
}
"
)
return
{
'status'
:
'FAILURE'
,
...
...
Write
Preview
Markdown
is supported
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