diff --git a/pagure/lib/notify.py b/pagure/lib/notify.py index 8790023..3ebb4e9 100644 --- a/pagure/lib/notify.py +++ b/pagure/lib/notify.py @@ -69,7 +69,7 @@ def log(project, topic, msg): content = json.dumps(msg) hashhex = hmac.new( - project.hook_token, content, hashlib.sha1).hexdigest() + str(project.hook_token), content, hashlib.sha1).hexdigest() headers = { 'X-Pagure-Topic': topic, 'X-Pagure-Signature': hashhex