Skip to content

Commit

Permalink
Merge pull request #357 from stripe/brandur-remove-bare-except
Browse files Browse the repository at this point in the history
Catch `Exception` instead of using bare `except`
  • Loading branch information
brandur-stripe authored Oct 23, 2017
2 parents 6bd44df + 280ae26 commit 9c88ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stripe/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def verify_header(cls, payload, header, secret, tolerance=None):
try:
timestamp, signatures = cls._get_timestamp_and_signatures(
header, cls.EXPECTED_SCHEME)
except:
except Exception:
raise error.SignatureVerificationError(
"Unable to extract timestamp and signatures from header",
header, payload)
Expand Down

0 comments on commit 9c88ba3

Please sign in to comment.