refactoring

This commit is contained in:
Maxim Devaev
2024-09-18 04:37:43 +03:00
parent 45270a09d7
commit 7a53f14456
83 changed files with 517 additions and 516 deletions

View File

@@ -112,8 +112,8 @@ def valid_ssl_ciphers(arg: Any) -> str:
arg = valid_stripped_string_not_empty(arg, name)
try:
ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER).set_ciphers(arg)
except Exception as err:
raise ValidatorError(f"The argument {arg!r} is not a valid {name}: {err}")
except Exception as ex:
raise ValidatorError(f"The argument {arg!r} is not a valid {name}: {ex}")
return arg