Treat openid addresses as utf-8 in the mugshot awarder script.
This commit is contained in:
parent
7777a835b9
commit
730e83903f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue