Skip to content

CapabilityServer.__catch_and_log makes it hard to catch exceptions #69

@bit-pirate

Description

@bit-pirate

While improving the error handling in the rapp manager for issue #68, it took me a while to do the right exception handling. Only when I realised that CapabilityServer.__catch_and_log() redefines the RuntimeError exception raised by CapabilityServer.__free_capability(), I understood why my RuntimeError catching didn't work.

I'm under the assumption that doing a catch all via except Exception is bad practise. So, I'm wondering if __catch_and_log should be changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions