election/openstack_election
Tony Breeds 01c8307efc Handle failed lookups from the OSF member DB
If a lookup for a member find no matches (perhaps an incorrect email
address) the resulting JSON has an empty 'data' element.  The existing
code assumed it would be missing altogether.

So check for an item in the list before trying to index the data.

While we're doing this, use the same code style for both get_fullname()
and get_irc() to remove points of confusion.

Change-Id: I4c899df5f93c27f5e5390c93e88741d24c0282d8
2018-04-11 22:34:56 +00:00
..
cmds TC Nominations should also be email addresses 2018-04-10 18:57:33 -04:00
tests Add name2dir test 2017-04-07 08:49:59 +00:00
__init__.py Make openstack_election look more like a python module 2016-09-12 15:35:40 +10:00
check_candidacy.py Refactor all parameters to configuration.yaml 2016-11-09 03:24:26 +00:00
config.py Rewrite the event logic in javascript 2017-01-30 01:48:11 +00:00
owners.py Stop excluding bot accounts 2018-02-06 21:42:32 +00:00
utils.py Handle failed lookups from the OSF member DB 2018-04-11 22:34:56 +00:00