Skip to content

Commit

Permalink
Merge pull request #770 from danielballan/repr-uid
Browse files Browse the repository at this point in the history
Improve error message.
  • Loading branch information
danielballan authored Jun 4, 2023
2 parents 563d2e1 + 6c06471 commit 431bd6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databroker/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def partial_uid(query, catalog):
for partial_uid in query.partial_uids:
if len(partial_uid) < 5:
raise QueryValueError(
f"Partial uid {partial_uid} is too short. "
f"Partial uid {partial_uid!r} is too short. "
"It must include at least 5 characters."
)
result = catalog.apply_mongo_query({"uid": {"$regex": f"^{partial_uid}"}})
Expand Down

0 comments on commit 431bd6e

Please sign in to comment.