summaryrefslogtreecommitdiff
path: root/kvmd/aiotools.py
diff options
context:
space:
mode:
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())