summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-06-12 06:13:31 +0300
committerDevaev Maxim <[email protected]>2019-06-12 06:13:31 +0300
commita6aaa212872590d425945d8b3bf11ba4cbfc1fde (patch)
tree8f10c121a7c0f4f754437d30ac3b5fc604322c1b
parent675abed41a839b35d15090398e7dff585cfb9989 (diff)
pylint fix
-rw-r--r--kvmd/apps/kvmd/server.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/kvmd/apps/kvmd/server.py b/kvmd/apps/kvmd/server.py
index 1b900334..4ecbc74b 100644
--- a/kvmd/apps/kvmd/server.py
+++ b/kvmd/apps/kvmd/server.py
@@ -533,14 +533,11 @@ class Server: # pylint: disable=too-many-instance-attributes
if getattr(method, _ATTR_SYSTEM_TASK, False):
self.__system_tasks.append(asyncio.create_task(method()))
elif getattr(method, _ATTR_EXPOSED, False):
- # router = app.router
- router = getattr(app, "router") # FIXME: Dirty hack to avoid pylint crash
- router.add_route(
+ app.router.add_route(
getattr(method, _ATTR_EXPOSED_METHOD),
getattr(method, _ATTR_EXPOSED_PATH),
method,
)
-
return app
def __run_app_print(self, text: str) -> None: