summaryrefslogtreecommitdiff
path: root/kvmd/aiotools.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/aiotools.py')
-rw-r--r--kvmd/aiotools.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmd/aiotools.py b/kvmd/aiotools.py
index d790158d..831fe18f 100644
--- a/kvmd/aiotools.py
+++ b/kvmd/aiotools.py
@@ -177,5 +177,6 @@ async def run_region_task(
if entered.done():
return
- if (exc := task.exception()) is not None:
+ exc = task.exception()
+ if exc is not None:
raise exc