refactor(paymentrequest): use f-string in error message
This commit is contained in:
@@ -403,7 +403,7 @@ def verify_cert_chain(chain):
|
|||||||
hashBytes = bytearray(hashlib.sha512(data).digest())
|
hashBytes = bytearray(hashlib.sha512(data).digest())
|
||||||
verify = pubkey.verify(sig, x509.PREFIX_RSA_SHA512 + hashBytes)
|
verify = pubkey.verify(sig, x509.PREFIX_RSA_SHA512 + hashBytes)
|
||||||
else:
|
else:
|
||||||
raise Exception("Algorithm not supported: {}".format(algo))
|
raise Exception(f"Algorithm not supported: {algo}")
|
||||||
if not verify:
|
if not verify:
|
||||||
raise Exception("Certificate not Signed by Provided CA Certificate Chain")
|
raise Exception("Certificate not Signed by Provided CA Certificate Chain")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user