Skip to content

Commit

Permalink
Fix TypeError formatting to reflect the true error (Fixes #2157)
Browse files Browse the repository at this point in the history
  • Loading branch information
markpeek committed Aug 12, 2023
1 parent b241a05 commit c52e9eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion troposphere/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
def validate_policytype(policy):
if not isinstance(policy, policytypes):
raise TypeError(
"Invalid policy type: is %s, expected %s" % type(policy), policytypes
f"Invalid policy type: is {type(policy)}, expected {policytypes}"
)

return policy


Expand Down

0 comments on commit c52e9eb

Please sign in to comment.