Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hubspot/utils/webhooks.py
Original file line number Diff line number Diff line change
@@ -15,7 +15,9 @@ def validate_signature(
elif signature_version == "v2":
source_string = client_secret + http_method + http_uri + request_body
else:
raise ValueError("Not supported signature version: {}".format(signature_version))
raise ValueError(
"Not supported signature version: {}".format(signature_version)
)

hash_result = hashlib.sha256(source_string.encode("utf-8")).hexdigest()

0 comments on commit f6c76f3

Please sign in to comment.