Skip to content

Optional handling of result.success in result_processor #151

@miketynes

Description

@miketynes

In Thinker methods decorated with result_processor, it is common to start with a check like:

if not result.success:
  raise RuntimeError(result.failure_info.exception)

This could just be an optional feature of result_processor to reduce boilerplate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions