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/atx/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'kvmd/plugins/atx/__init__.py') diff --git a/kvmd/plugins/atx/__init__.py b/kvmd/plugins/atx/__init__.py index da08afd5..902e3e7c 100644 --- a/kvmd/plugins/atx/__init__.py +++ b/kvmd/plugins/atx/__init__.py @@ -24,8 +24,6 @@ from typing import Dict from typing import AsyncGenerator from typing import Type -from ... import aioregion - from .. import BasePlugin from .. import get_plugin_class @@ -39,8 +37,9 @@ class AtxOperationError(AtxError): pass -class AtxIsBusyError(AtxOperationError, aioregion.RegionIsBusyError): - pass +class AtxIsBusyError(AtxOperationError): + def __init__(self) -> None: + super().__init__("Performing another ATX operation, please try again later") # ===== -- cgit v1.2.3