Skip to content

Commit

Permalink
fix error messaging on failed peer dict coercion
Browse files Browse the repository at this point in the history
  • Loading branch information
jnhmcknight committed Oct 7, 2022
1 parent 28a8f4a commit 3909eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wireguard/peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _coerce_value(self, value):
try:
return Peer(**value)
except ValueError as exc:
pass
raise ValueError('Provided value must be an instance of Peer') from exc

raise ValueError('Provided value must be an instance of Peer')

Expand Down

0 comments on commit 3909eca

Please sign in to comment.