Skip to content

Commit

Permalink
pybind: clear error if we're not going to use it
Browse files Browse the repository at this point in the history
To fail to do so results in a deadlock when using python multiprocessing.
  • Loading branch information
PaulPrice committed Jun 12, 2017
1 parent fc1c281 commit 8811f04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/lsst/afw/table/schema/schema.cc
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ void declareSchema(py::module &mod) {
try {
self.attr("find")(key);
} catch (py::error_already_set &err) {
err.clear();
return false;
}
return true;
Expand Down

0 comments on commit 8811f04

Please sign in to comment.