Trying to acess a member of the collection of people with an invalid key with spaces succeeds
Bug #1391936 reported by
David Lawson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
New
|
Undecided
|
Unassigned |
Bug Description
If you pull the full list of Launchpad members and attempt to access a specific member with an invalid key with spaces, of which the first word is a valid key, it succeeds but gives you the wrong Launchpad member. For example:
>>> from launchpadlib.
>>> launchpad = Launchpad.
>>> people = launchpad.people
>>> olivia = people["olivia lalala does not exist"]
>>> olivia.self_link
u'https:/
I would expect a KeyError in this situation.
To post a comment you must log in.