Skip to content

Commit

Permalink
Merge pull request #27 from taskiq-python/bugfix/missing-warning
Browse files Browse the repository at this point in the history
Added missing warning catcher.
  • Loading branch information
s3rius authored Dec 9, 2024
2 parents abaa65a + 5050067 commit b5828bd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions aiohttp_deps/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ def __init__(
for method in hdrs.METH_ALL
if hasattr(original_route, method.lower())
}
self.graph_map = {
method: DependencyGraph(getattr(original_route, method))
for method in allowed_methods
}
with warnings.catch_warnings():
warnings.filterwarnings("ignore", r".*Cannot resolve.*Request.*")
self.graph_map = {
method: DependencyGraph(getattr(original_route, method))
for method in allowed_methods
}

async def __call__(self, request: web.Request) -> web.StreamResponse:
"""
Expand Down

0 comments on commit b5828bd

Please sign in to comment.