summaryrefslogtreecommitdiff
path: root/kvmd/aiotools.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2020-09-05 01:56:36 +0300
committerGitHub <[email protected]>2020-09-05 01:56:36 +0300
commit1257408183f0f0d649bb6302776107ed6c6a36f7 (patch)
treeef19423515ca1cc3dd6d7a45a5843220cfe46bfc /kvmd/aiotools.py
parentfc53759b3e7ddb0b570d35d1afb159080a805586 (diff)
parentdd2ff1ec832d00a29d33d5b54ee87f9a12b5af45 (diff)
Merge pull request #6 from OlegGirko/python-3.7
Make KVMD compatible with Python 3.7
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