@@ -176,21 +176,21 @@ typedef enum _WIN32_THREADSTATE {
176176/* Exception cause macro - chains context to existing exceptions in debug mode.
177177 * This macro assumes an exception has already been set by the failing function.
178178 * If no exception exists, this indicates a bug that should be fixed. */
179- #define set_exception_cause (unwinder , exc_type , message ) \
180- do { \
181- if (!PyErr_ExceptionMatches(PyExc_PermissionError)) { \
182- if (PyErr_Occurred()) { \
183- if (unwinder->debug) { \
184- /* Chain exception with context */ \
185- _PyErr_FormatFromCause (exc_type , "%s" , message ); \
186- } \
187- } else { \
188- /* BUG: Exception should have been set by caller */ \
189- /* Fallback prevents crash; assert catches bug in debug builds */ \
190- PyErr_SetString (exc_type , message ); \
179+ #define set_exception_cause (unwinder , exc_type , message ) \
180+ do { \
181+ if (!PyErr_ExceptionMatches(PyExc_PermissionError)) { \
182+ if (PyErr_Occurred()) { \
183+ if (unwinder->debug) { \
184+ /* Chain exception with context */ \
185+ _PyErr_FormatFromCause (exc_type , "%s" , message ); \
186+ } \
187+ } else { \
188+ /* BUG: Exception should have been set by caller */ \
189+ /* Fallback prevents crash; assert catches bug in debug builds */ \
190+ PyErr_SetString (exc_type , message ); \
191191 assert (PyErr_Occurred () && "function returned -1 without setting exception" ); \
192- } \
193- } \
192+ } \
193+ } \
194194 } while (0 )
195195
196196/* ============================================================================
0 commit comments