Skip to content

KeyError catched but never raised? #21

@jensens

Description

@jensens

At

try:
return intids.getObject(id)
except KeyError:

We catch a KeyError, but according to the called getObject implementation it is never raised:
https://github.com/zopefoundation/zope.intid/blob/3ae7ac3232167ae6d54dd920ce7fd179ba128615/src/zope/intid/__init__.py#L83-L89
Instead a zope.intid.interfaces.ObjectMissingError is raised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions