summaryrefslogtreecommitdiff
path: root/kvmd/aiotools.py
diff options
context:
space:
mode:
authorOleg Girko <[email protected]>2020-08-18 03:44:06 +0300
committerOleg Girko <[email protected]>2020-09-01 19:24:13 +0300
commit2dbf11428f01b748619ac5b25215c7d7a0b07dbc (patch)
treeabdc93c161c4c0678106dc66ffde3f66b98ef0c4 /kvmd/aiotools.py
parent5307765399c1a3280eeb33380047195a118eb935 (diff)
Remove all uses of assignment expressions.
This is needed to port to Python 3.7 because Raspbian 10 doesn't have Python 3.8. Signed-off-by: Oleg Girko <[email protected]>
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