mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +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:
|
||||
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user