Merge "Detect values of None in utils.get_irc()"

This commit is contained in:
Zuul 2019-11-14 02:59:09 +00:00 committed by Gerrit Code Review
commit 2f437a29c0

View File

@ -178,6 +178,9 @@ def get_irc(member, filepath=None):
member_data = member.get('data', [])
if member_data:
irc = member_data[0].get('irc', '')
# The API can return None for nonexistent nicks
if irc is None:
irc = ''
return irc