summaryrefslogtreecommitdiff
path: root/kvmd/plugins/atx
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-12-09 02:26:48 +0300
committerDevaev Maxim <[email protected]>2019-12-09 02:26:48 +0300
commit3048fc79233f1ece909dee0f100e72a2f3f5a639 (patch)
tree834e0ab68541ecf0f58a4100f90ca0836b6f9bf5 /kvmd/plugins/atx
parentdd52a85cf6c21c5a7743acad152d8378f1ae0ef4 (diff)
very common exceptions
Diffstat (limited to 'kvmd/plugins/atx')
-rw-r--r--kvmd/plugins/atx/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/kvmd/plugins/atx/__init__.py b/kvmd/plugins/atx/__init__.py
index a593929e..b536ef87 100644
--- a/kvmd/plugins/atx/__init__.py
+++ b/kvmd/plugins/atx/__init__.py
@@ -24,6 +24,9 @@ from typing import Dict
from typing import AsyncGenerator
from typing import Type
+from ...errors import OperationError
+from ...errors import IsBusyError
+
from .. import BasePlugin
from .. import get_plugin_class
@@ -33,11 +36,11 @@ class AtxError(Exception):
pass
-class AtxOperationError(AtxError):
+class AtxOperationError(OperationError, AtxError):
pass
-class AtxIsBusyError(AtxOperationError):
+class AtxIsBusyError(IsBusyError, AtxError):
def __init__(self) -> None:
super().__init__("Performing another ATX operation, please try again later")