We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 631bcf3 commit 58d7355Copy full SHA for 58d7355
src/labthings_fastapi/thing_slots.py
@@ -288,7 +288,7 @@ def connect(
288
# an error.
289
raise ThingSlotError("it can't connect to multiple Things")
290
except (ThingSlotError, KeyError) as e:
291
- reason = e.args[0]
+ reason = str(e.args[0])
292
if isinstance(e, KeyError):
293
reason += " is not the name of a Thing"
294
msg = f"Can't connect '{host.name}.{self.name}' because {reason}. "
0 commit comments