Skip to content

Commit

Permalink
unknown error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
mayabrandi committed Sep 9, 2021
1 parent 4502cd5 commit 88ffedd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cg_lims/crud/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ def create_preps(adapter: CgLimsAdapter, preps: List[PrepCollection]) -> List[st
try:
result: InsertManyResult = adapter.prep_collection.insert_many(prep_dicts)
LOG.info("Added prep documents.")
except:
raise InsertError(f"Prep keys already in database.")
except InsertError as e:
raise InsertError(e.message)
return result.inserted_ids

0 comments on commit 88ffedd

Please sign in to comment.