Not only can they be without names, they can be a one word name which
would cause a different crash. Again, allow that through and let the
user make manual adjustments if they wish.
r = oa.get('https://api.github.com/user').json()
if 'name' in r:
n = r['name'].split(None, 1)
+ # Some accounts only have one name, extend with an empty
+ # lastname, so the user can fill it out manually.
+ while len(n) < 2:
+ n.append('')
else:
# Some github accounts have no name on them, so we can just
# let the user fill it out manually in that case.