Skip to content

Commit 702ef8a

Browse files
committed
blackened
1 parent 7dc0e19 commit 702ef8a

File tree

1 file changed

+3
-1
lines changed
  • labthings/server/spec

1 file changed

+3
-1
lines changed

labthings/server/spec/td.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ def action(self, rules: list, view: View):
218218
requests.
219219
"""
220220
if not hasattr(view, "post"):
221-
raise AttributeError(f"The API View '{view}' was added as an Action, but it does not have a POST method.")
221+
raise AttributeError(
222+
f"The API View '{view}' was added as an Action, but it does not have a POST method."
223+
)
222224
endpoint = getattr(view, "endpoint") or getattr(rules[0], "endpoint")
223225
key = snake_to_camel(endpoint)
224226
self.actions[key] = self.view_to_thing_action(rules, view)

0 commit comments

Comments
 (0)