mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
refactoring
This commit is contained in:
@@ -39,8 +39,8 @@ def cmdfmt(cmd: list[str]) -> str:
|
||||
return " ".join(map(shlex.quote, cmd))
|
||||
|
||||
|
||||
def efmt(err: Exception) -> str:
|
||||
return f"{type(err).__name__}: {err}"
|
||||
def efmt(ex: Exception) -> str:
|
||||
return f"{type(ex).__name__}: {ex}"
|
||||
|
||||
|
||||
# =====
|
||||
|
||||
Reference in New Issue
Block a user