Skip to content

Commit 862b7ef

Browse files
author
tailor
committed
[project @ fix #932 by using a default value of '']
1 parent 5b9c345 commit 862b7ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎openid/association.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def signDict(self, fields, data, prefix='openid.'):
299299
"""
300300
pairs = []
301301
for field in fields:
302-
pairs.append((field, data[prefix + field]))
302+
pairs.append((field, data.get(prefix + field, '')))
303303

304304
return oidutil.toBase64(self.sign(pairs))
305305

0 commit comments

Comments
 (0)