Skip to content

Commit 132b8da

Browse files
authored
Warning should specify to await handle_async (#151)
1 parent f17030b commit 132b8da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure/functions/_http_asgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def handle(self, req: HttpRequest, context: Optional[Context] = None):
159159
async def main(req, context):
160160
return await func.AsgiMiddleware(app).handle_async(req, context)
161161
"""
162-
warn("handle() is deprecated. Please use handle_async() instead.",
162+
warn("handle() is deprecated. Please await .handle_async() instead.",
163163
DeprecationWarning, stacklevel=2)
164164
self._logger.debug(f"Handling {req.url} as an ASGI request.")
165165
self._logger.warning(

0 commit comments

Comments
 (0)