Skip to content

replace the assert statements with throw statement #53

Open
@NoureldinYosri

Description

@NoureldinYosri

when using Tesseract through the python interface, failed assert statements in the C++ layer cause the python session to crash ... throw statements are handled better by pybind11 and will show up as regular python exceptions https://github.com/quantumlib/tesseract-decoder/blob/main/.github/workflows/stable-release-workflow.yml

alternatively find out if pybind11 has a way to safely catch failed asserts

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