From 810b5e8fab7c8779a0d049753968666d22049e50 Mon Sep 17 00:00:00 2001 From: Padraic Shafer Date: Sat, 13 Apr 2024 09:23:00 -0700 Subject: [PATCH] BUG: Pass a tuple to str.join() --- databroker/_core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/databroker/_core.py b/databroker/_core.py index 3780115ce..acd4eea06 100644 --- a/databroker/_core.py +++ b/databroker/_core.py @@ -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.