mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-05-06 05:03:49 +00:00
Compare commits
2 Commits
528d7ce398
...
fa3191c2be
Author | SHA1 | Date | |
---|---|---|---|
fa3191c2be | |||
5c8a08c1b4 |
@ -174,8 +174,9 @@ class BaseView(View, CorsViewMixin):
|
|||||||
# using if/else in order to suppress mypy warning which doesn't know that
|
# using if/else in order to suppress mypy warning which doesn't know that
|
||||||
# :func:`aiohttp.web.View._raise_allowed_methods()` raises exception
|
# :func:`aiohttp.web.View._raise_allowed_methods()` raises exception
|
||||||
if get_method is not None:
|
if get_method is not None:
|
||||||
|
# there is a bug in pylint, see https://github.com/pylint-dev/pylint/issues/6005
|
||||||
response = await get_method()
|
response = await get_method()
|
||||||
response._body = b""
|
response._body = b"" # type: ignore[assignment]
|
||||||
return response
|
return response
|
||||||
|
|
||||||
self._raise_allowed_methods()
|
self._raise_allowed_methods()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user