Skip to content

Commit 7722dee

Browse files
committed
use failedMergingExecption
1 parent 3da80c9 commit 7722dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specifyweb/specify/record_merging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def update_record(record: models.Model):
308308

309309
response: http.HttpResponse = update_record(obj)
310310
if response is not None and response.status_code != 204:
311-
return response
311+
raise FailedMergingException(response)
312312

313313
# Dedupe by deleting the record that is being replaced and updating the old model ID to the new one
314314
for old_model_id in old_model_ids:

0 commit comments

Comments
 (0)