Skip to content

Commit

Permalink
Swap order of error message when SignerInfo has unexpected content
Browse files Browse the repository at this point in the history
As mentioned in #5
  • Loading branch information
ralphje committed Jan 19, 2020
1 parent a02f33d commit 80fc10c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions signify/signerinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def _parse(self):

if self._expected_content_type is not None and self.content_type is not self._expected_content_type:
raise SignerInfoParseError("Unexpected content type for SignerInfo, expected %s, got %s" %
(_print_type(self.content_type),
_print_type(self._expected_content_type)))
(_print_type(self._expected_content_type),
_print_type(self.content_type)))

# - The signingTime (used by countersigner)
self.signing_time = None
Expand Down

0 comments on commit 80fc10c

Please sign in to comment.