diff options
author | Maxim Devaev <[email protected]> | 2020-09-05 01:56:36 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-05 01:56:36 +0300 |
commit | 1257408183f0f0d649bb6302776107ed6c6a36f7 (patch) | |
tree | ef19423515ca1cc3dd6d7a45a5843220cfe46bfc /kvmd/aiotools.py | |
parent | fc53759b3e7ddb0b570d35d1afb159080a805586 (diff) | |
parent | dd2ff1ec832d00a29d33d5b54ee87f9a12b5af45 (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.py | 3 |
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 |