Skip to content

OSD::SetSignal() for Exception handling in Python #1295

Open
@jek28

Description

@jek28

Hi I am using pythonocc to read a step file thanks to the read_step_file function of the OCC.Extend.DataExchange module. In case of a corrupted file (e.g. missing references) the above function generates a crash in python without generating exceptions. I have already tried using a try-except statement without results.

I have read in the C++ documentation about the OSD::SetSignal() function (joined with OCC_CATCH_SIGNALS in linux) which is supposed to turn application kill signals into exceptions.

Searching the python library I have not found how to enable this feature and the program keeps crashing without exception. Does anyone know if these options are available?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions