POHeader.__getitem__ semantic is broken when there is no such item

Bug #120202 reported by Carlos Perelló Marín
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

It returns an empty list when it should raise NotFoundError exception

Revision history for this message
Barry Warsaw (barry) wrote :

This is because __getitem__() is implemented in terms of .get() with a default value. It shouldn't be implemented that way.

Changed in rosetta:
status: Unconfirmed → Confirmed
Changed in rosetta:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.