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
2025-06-18 04:40:22 -07:00
parent bf27ac07ed
commit d15170b18c
2 changed files with 2 additions and 2 deletions

View File

@@ -515,7 +515,7 @@ def check_certificate(domain, ssl_certificate, ssl_private_key, warn_if_expiring
cert = load_pem(ssl_cert_chain[0])
if not isinstance(cert, Certificate): raise ValueError("This is not a certificate file.")
except ValueError as e:
return (f"There is a problem with the certificate file: {str(e)}", None)
return (f"There is a problem with the certificate file: {e!s}", None)
# First check that the domain name is one of the names allowed by
# the certificate.