style(widgets): apply formatter to widget rebind files
This commit is contained in:
@@ -58,10 +58,7 @@ def _validate_widget_input(body: WidgetInstanceInput, store: SettingsStore) -> N
|
||||
if widget_kind is None:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_422_UNPROCESSABLE_CONTENT,
|
||||
detail=(
|
||||
f"Service type '{service['service_type']}' does not provide "
|
||||
f"widget kind '{body.widget_kind}'"
|
||||
),
|
||||
detail=(f"Service type '{service['service_type']}' does not provide widget kind '{body.widget_kind}'"),
|
||||
)
|
||||
if widget_kind.config_model is not None:
|
||||
try:
|
||||
@@ -76,8 +73,7 @@ def _validate_widget_input(body: WidgetInstanceInput, store: SettingsStore) -> N
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_422_UNPROCESSABLE_CONTENT,
|
||||
detail=(
|
||||
f"Unknown built-in widget kind '{body.widget_kind}' "
|
||||
"(set service_id for service-bound widgets)"
|
||||
f"Unknown built-in widget kind '{body.widget_kind}' (set service_id for service-bound widgets)"
|
||||
),
|
||||
)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user