summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-12 02:13:52 +0300
committerDevaev Maxim <[email protected]>2019-09-12 02:13:52 +0300
commit6ce9f4c7a970a01f9feca77eb6156d6fadb91202 (patch)
tree5c7b4b53979138128cc0d7e0b36e95ef0c3dbf47 /kvmd/plugins/msd
parent8214a20d4af3fdb59bb35bd8f83d3d9977de8f35 (diff)
separate region exceptions
Diffstat (limited to 'kvmd/plugins/msd')
-rw-r--r--kvmd/plugins/msd/__init__.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/kvmd/plugins/msd/__init__.py b/kvmd/plugins/msd/__init__.py
index 2c46a663..fa31e00b 100644
--- a/kvmd/plugins/msd/__init__.py
+++ b/kvmd/plugins/msd/__init__.py
@@ -26,8 +26,6 @@ from typing import Dict
from typing import Type
from typing import AsyncGenerator
-from ... import aioregion
-
from .. import BasePlugin
from .. import get_plugin_class
@@ -61,8 +59,9 @@ class MsdNotOnKvmError(MsdOperationError):
super().__init__("MSD is not connected to KVM")
-class MsdIsBusyError(MsdOperationError, aioregion.RegionIsBusyError):
- pass
+class MsdIsBusyError(MsdOperationError):
+ def __init__(self) -> None:
+ super().__init__("Performing another MSD operation, please try again later")
# =====