From 059362bcab31353a97555ae0d3c674833cc2ab4d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 28 Jun 2022 14:52:40 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- include/pybind11/pytypes.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/pybind11/pytypes.h b/include/pybind11/pytypes.h index 9205e2b38..4647d0e70 100644 --- a/include/pybind11/pytypes.h +++ b/include/pybind11/pytypes.h @@ -574,7 +574,8 @@ PYBIND11_NAMESPACE_END(detail) /// thrown to propagate python-side errors back through C++ which can either be caught manually or /// else falls back to the function dispatcher (which then raises the captured error back to /// python). -class PYBIND11_EXPORT_EXCEPTION error_already_set : public std::exception, public std::nested_exception { +class PYBIND11_EXPORT_EXCEPTION error_already_set : public std::exception, + public std::nested_exception { public: /// Fetches the current Python exception (using PyErr_Fetch()), which will clear the /// current Python error indicator. @@ -582,7 +583,7 @@ public: : m_fetched_error{new detail::error_fetch_and_normalize("pybind11::error_already_set"), m_fetched_error_deleter} { if (not nested_ptr()) - static_cast(*this) = m_fetched_error->get_cause_as_nested(); + static_cast(*this) = m_fetched_error->get_cause_as_nested(); } /// The what() result is built lazily on demand.