mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 11:01:53 +08:00
more vnc debug
This commit is contained in:
@@ -20,10 +20,14 @@
|
||||
# ========================================================================== #
|
||||
|
||||
|
||||
from .... import tools
|
||||
|
||||
|
||||
# =====
|
||||
class RfbError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class RfbConnectionError(RfbError):
|
||||
def __init__(self, err: Exception) -> None:
|
||||
super().__init__(type(err).__name__)
|
||||
def __init__(self, msg: str, err: Exception) -> None:
|
||||
super().__init__(f"{msg}: {tools.efmt(err)}")
|
||||
|
||||
Reference in New Issue
Block a user