mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 19:11:54 +08:00
separate region exceptions
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user