mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-29 13:01:36 +08:00
Treat openid addresses as utf-8 in the mugshot awarder script.
This commit is contained in:
@@ -40,7 +40,7 @@ def main():
|
||||
continue
|
||||
|
||||
openid = "http://%s.id.fedoraproject.org/" % person.nickname
|
||||
hash = hashlib.sha256(openid).hexdigest()
|
||||
hash = hashlib.sha256(openid.encode('utf-8')).hexdigest()
|
||||
url = "https://seccdn.libravatar.org/avatar/%s?d=404" % hash
|
||||
response = requests.get(url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user