Skip to content

Commit

Permalink
BUG: Pass a tuple to str.join()
Browse files Browse the repository at this point in the history
  • Loading branch information
padraic-shafer committed Apr 13, 2024
1 parent de1cf15 commit 810b5e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions databroker/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,10 +766,10 @@ def _(key, db):
if abs(key) <= max_int_value:
key = int(key)
else:
reason = " ".join(
reason = " ".join((
f"Integer key must be less than +/-{max_int_value};",
f"cannot convert value {key} of type {type(key)}."
)
))
raise KeyError(reason)
if key > -1:
# Interpret key as a scan_id.
Expand Down

0 comments on commit 810b5e8

Please sign in to comment.