mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-11 13:06:43 +00:00
✏️ Fix typo in assert statement (#419)
This commit is contained in:
parent
b66056aa34
commit
0c55553328
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ def get_websocket_app(
|
||||||
if errors:
|
if errors:
|
||||||
await websocket.close(code=WS_1008_POLICY_VIOLATION)
|
await websocket.close(code=WS_1008_POLICY_VIOLATION)
|
||||||
raise WebSocketRequestValidationError(errors)
|
raise WebSocketRequestValidationError(errors)
|
||||||
assert dependant.call is not None, "dependant.call must me a function"
|
assert dependant.call is not None, "dependant.call must be a function"
|
||||||
await dependant.call(**values)
|
await dependant.call(**values)
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue