Skip to content

Commit 08cb06b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent dfe64b4 commit 08cb06b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

yaqd-core/yaqd_core/_is_daemon.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@ def main(cls):
190190

191191
# Run the event loop
192192
try:
193-
asyncio.run(
194-
cls._main(config_filepath, config_file, args)
195-
)
193+
asyncio.run(cls._main(config_filepath, config_file, args))
196194
except asyncio.CancelledError:
197195
pass
198196

@@ -300,9 +298,11 @@ async def shutdown_all(cls, sig, loop):
300298
# are not themselves cancelled.
301299
[d.close() for d in cls._daemons]
302300
tasks = [
303-
t for t in asyncio.all_tasks()
301+
t
302+
for t in asyncio.all_tasks()
304303
if (
305-
t is not asyncio.current_task()
304+
t
305+
is not asyncio.current_task()
306306
# and "serve_forever" not in t.get_coro().__repr__()
307307
)
308308
]

0 commit comments

Comments
 (0)