Skip to content

Conversation

dbaston
Copy link
Member

@dbaston dbaston commented Feb 5, 2025

Fixes #11795

Current code checks CPLGetLastErrorType to see if there is an error. If so, Py_XDECREF(resultobj) is called, which causes the error to be reset. The subsequent call to CPLGetLastErrorMsg() then returns an empty string.

@coveralls
Copy link
Collaborator

coveralls commented Feb 5, 2025

Coverage Status

coverage: 70.061% (+0.002%) from 70.059%
when pulling 0e6983f on dbaston:fix-11795
into ac457b2 on OSGeo:master.

@rouault rouault merged commit 5248a30 into OSGeo:master Feb 5, 2025
35 of 38 checks passed
@dbaston dbaston added the bug label Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SWIG: Text passed to GDALAlgorithm::ReportError does not surface in Python exception message

3 participants