POHeader.__getitem__ semantic is broken when there is no such item
Bug #120202 reported by
Carlos Perelló Marín
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
It returns an empty list when it should raise NotFoundError exception
Changed in rosetta: | |
status: | Unconfirmed → Confirmed |
Changed in rosetta: | |
importance: | Undecided → Low |
To post a comment you must log in.
This is because __getitem__() is implemented in terms of .get() with a default value. It shouldn't be implemented that way.