From 6ce9f4c7a970a01f9feca77eb6156d6fadb91202 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Thu, 12 Sep 2019 02:13:52 +0300 Subject: separate region exceptions --- kvmd/plugins/msd/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'kvmd/plugins/msd/__init__.py') 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") # ===== -- cgit v1.2.3