diff options
author | Devaev Maxim <[email protected]> | 2019-09-12 02:13:52 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-09-12 02:13:52 +0300 |
commit | 6ce9f4c7a970a01f9feca77eb6156d6fadb91202 (patch) | |
tree | 5c7b4b53979138128cc0d7e0b36e95ef0c3dbf47 /kvmd/aioregion.py | |
parent | 8214a20d4af3fdb59bb35bd8f83d3d9977de8f35 (diff) |
separate region exceptions
Diffstat (limited to 'kvmd/aioregion.py')
-rw-r--r-- | kvmd/aioregion.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/kvmd/aioregion.py b/kvmd/aioregion.py index 0b57e801..4d5e16bc 100644 --- a/kvmd/aioregion.py +++ b/kvmd/aioregion.py @@ -26,13 +26,8 @@ from typing import Type # ===== -class RegionIsBusyError(Exception): - def __init__(self) -> None: - super().__init__("Performing another operation, please try again later") - - class AioExclusiveRegion: - def __init__(self, exc_type: Type[RegionIsBusyError]) -> None: + def __init__(self, exc_type: Type[Exception]) -> None: self.__exc_type = exc_type self.__busy = False |