forked from jan/debianmemberportfolio
handle fpr is None correctly
This commit is contained in:
parent
e148c2c0d4
commit
c6eda91546
1 changed files with 2 additions and 2 deletions
|
@ -41,9 +41,9 @@ def build_urls(fields):
|
||||||
data = {}
|
data = {}
|
||||||
errors = {}
|
errors = {}
|
||||||
qfields = dict([(key, quote_plus(fields[key])) for key in fields])
|
qfields = dict([(key, quote_plus(fields[key])) for key in fields])
|
||||||
fpr = keyfinder.getFingerprintByEmail(str(fields['email']))[0]
|
fpr = keyfinder.getFingerprintByEmail(str(fields['email']))
|
||||||
if fpr:
|
if fpr:
|
||||||
qfields['gpgfp'] = fpr
|
qfields['gpgfp'] = fpr[0]
|
||||||
for section in my_config.sections():
|
for section in my_config.sections():
|
||||||
if my_config.has_option(section, 'urls'):
|
if my_config.has_option(section, 'urls'):
|
||||||
for url in my_config.get(section, 'urls').split(','):
|
for url in my_config.get(section, 'urls').split(','):
|
||||||
|
|
Loading…
Reference in a new issue