Skip to content

Commit

Permalink
helping lint to better place
Browse files Browse the repository at this point in the history
  • Loading branch information
msetina authored Mar 19, 2024
1 parent 0500462 commit a34ee6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signxml/xades/xades.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def _verify_signing_time(self, verify_result: VerifyResult):

def _verify_cert_digest(self, signing_cert_node, expect_cert, idx):
cert = self._find(signing_cert_node, "xades:Cert[{0}]".format(idx), False)
if cert != None:
if cert is not None:
cert_digest = self._find(cert, "xades:CertDigest")
digest_alg = DigestAlgorithm(self._find(cert_digest, "DigestMethod").get("Algorithm"))
digest_value = self._find(cert_digest, "DigestValue")
Expand Down

0 comments on commit a34ee6e

Please sign in to comment.