1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-04-15 23:47:24 +02:00

Fixed RUF010 (explicit-f-string-type-conversion): Use explicit conversion flag

This commit is contained in:
Teal Dulcet
2023-12-22 07:42:13 -08:00
committed by Joshua Tauberer
parent c719fce40a
commit 15bddcbc39
2 changed files with 2 additions and 2 deletions

View File

@@ -537,7 +537,7 @@ def check_certificate(domain, ssl_certificate, ssl_private_key, warn_if_expiring
with open(ssl_private_key, 'rb') as f:
priv_key = load_pem(f.read())
except ValueError as e:
return (f"The private key file {ssl_private_key} is not a private key file: {str(e)}", None)
return (f"The private key file {ssl_private_key} is not a private key file: {e!s}", None)
if not isinstance(priv_key, RSAPrivateKey):
return ("The private key file %s is not a private key file." % ssl_private_key, None)