Skip to content

Commit cdccab0

Browse files
Update docstring for explicit raise message
1 parent f8ff0fe commit cdccab0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/labthings_fastapi/actions/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,14 @@ def id(self) -> uuid.UUID:
131131

132132
@property
133133
def output(self) -> Any:
134-
"""Return value of the Action. If the Action is still running, returns None."""
134+
"""Return value of the Action. If the Action is still running, returns None.
135+
136+
:raise NoBlobManagerError: If this is called in a context where the blob
137+
manager context variables are not available. This stops errors being raised
138+
later once the blob is returned and tries to serialise. If the errors
139+
happen during serialisation the stack-trace will not clearly identify
140+
the route with the missing dependency.
141+
"""
135142
try:
136143
blobdata_to_url_ctx.get()
137144
except LookupError as e:

0 commit comments

Comments
 (0)