Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

resolve attemtping to index first item in list #1

Merged
merged 1 commit into from
Aug 21, 2017

Conversation

andrewkrug
Copy link

Fixes a problem in the sso-dashboard where the userinfo endpoint may return an empty list. For example: nicknames: []

This causes the to_dict method to set None instead of attempting val[0]. This would have been way easier in ruby thanks to .first() on list objects ;)

@andrewkrug andrewkrug requested a review from gdestuynder August 21, 2017 19:11
@andrewkrug
Copy link
Author

Opening bug on pyoidc as well right now.

@andrewkrug
Copy link
Author

Cross link OIC issue CZ-NIC#411

@andrewkrug andrewkrug added the bug label Aug 21, 2017
@andrewkrug andrewkrug merged commit 5c244f5 into mozilla-iam:master Aug 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant