Skip to content

Commit 01582f4

Browse files
authored
fix: prevent AttributeError in Pydantic GET/HEAD warning log (#1386)
1 parent d19b67f commit 01582f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

robyn/router.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ def add_route( # type: ignore
168168
_logger.warning(
169169
"Handler '%s' on %s '%s' uses Pydantic body parameter(s) %s, but %s requests typically do not carry a request body",
170170
handler.__name__,
171-
route_type.name,
171+
route_type,
172172
endpoint,
173173
list(pydantic_params.keys()),
174-
route_type.name,
174+
route_type,
175175
)
176176

177177
def wrapped_handler(*args, **kwargs):

0 commit comments

Comments
 (0)