Skip to content

Commit c5794b9

Browse files
committed
fix get_error_handler
1 parent 793a582 commit c5794b9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

amplpy/ampl.pyx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -716,9 +716,7 @@ cdef class AMPL:
716716
Returns:
717717
The current error handler.
718718
"""
719-
cdef void* error_handler
720-
PY_AMPL_CALL(campl.AMPL_GetErrorHandler(self._c_ampl, &error_handler))
721-
return <ErrorHandler>error_handler
719+
return <ErrorHandler>self._error_handler
722720

723721
def get_variables(self):
724722
"""

0 commit comments

Comments
 (0)