1
0

refactor(paymentrequest): use f-string in error message

This commit is contained in:
Peyton Allworth
2025-09-12 22:40:58 -07:00
parent 47f1a2d7a2
commit 67f09bf528

View File

@@ -403,7 +403,7 @@ def verify_cert_chain(chain):
hashBytes = bytearray(hashlib.sha512(data).digest())
verify = pubkey.verify(sig, x509.PREFIX_RSA_SHA512 + hashBytes)
else:
raise Exception("Algorithm not supported: {}".format(algo))
raise Exception(f"Algorithm not supported: {algo}")
if not verify:
raise Exception("Certificate not Signed by Provided CA Certificate Chain")