mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 18:41:54 +08:00
fixed msg
This commit is contained in:
@@ -52,7 +52,7 @@ def raise_error(arg: Any, name: str, hide: bool=False) -> NoReturn:
|
|||||||
|
|
||||||
def check_not_none(arg: Any, name: str) -> Any:
|
def check_not_none(arg: Any, name: str) -> Any:
|
||||||
if arg is None:
|
if arg is None:
|
||||||
raise ValidatorError(f"Empty argument is not a valid {name}")
|
raise ValidatorError(f"None argument is not a valid {name}")
|
||||||
return arg
|
return arg
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user