Just started working on a project that is using Python to drive C API's. When the C API's take an unhandled event they terminate using a C exit(3).

How can I monitor for these exit conditions with in my Python code and handle and process the error code used in the C functions exit?

I have searched around and tried many of the exception classes to no avail.

Recommended Answers

All 2 Replies

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.