Treat openid addresses as utf-8 in the mugshot awarder script.

This commit is contained in:
Ralph Bean 2013-09-16 00:59:04 +00:00
parent 7777a835b9
commit 730e83903f

View file

@ -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)