Commit 0a9876d6 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Improve exception message

parent f57b499c
Pipeline #32952 passed with stages
in 2 minutes and 29 seconds
......@@ -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',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment