summaryrefslogtreecommitdiff
path: root/kvmd/aiotools.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-09-18 04:37:43 +0300
committerMaxim Devaev <[email protected]>2024-09-18 04:37:43 +0300
commit7a53f1445619fc471c2823e7081de8b6039b938e (patch)
tree961dd0072cc976504fe4570743d801c79512e9a6 /kvmd/aiotools.py
parent45270a09d7b5076bac96887a1e36d752882e3adf (diff)
refactoring
Diffstat (limited to 'kvmd/aiotools.py')
-rw-r--r--kvmd/aiotools.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/aiotools.py b/kvmd/aiotools.py
index c859e176..5d284a94 100644
--- a/kvmd/aiotools.py
+++ b/kvmd/aiotools.py
@@ -112,9 +112,9 @@ def shield_fg(aw: Awaitable): # type: ignore
if inner.cancelled():
outer.forced_cancel()
else:
- err = inner.exception()
- if err is not None:
- outer.set_exception(err)
+ ex = inner.exception()
+ if ex is not None:
+ outer.set_exception(ex)
else:
outer.set_result(inner.result())