Commit d0431081 authored by Andreas Dedner's avatar Andreas Dedner

[!119] [fix] Catch exception by const reference

Merge branch 'fix/compiler-warnings-catch-value' into 'master'

Silences gcc-8 warning when catching polymorphic types by value.

See merge request [!119]

  [!119]: gitlab.dune-project.org/staging/dune-python/merge_requests/119
parents 86aa5ecc 60899f8e
Pipeline #12400 passed with stage
in 7 minutes and 22 seconds
......@@ -193,7 +193,7 @@ namespace Dune
{
return obj.attr( "_typeName" ).cast<std::string>();
}
catch(pybind11::error_already_set )
catch(const pybind11::error_already_set& )
{
return pybind11::str(obj);
}
......@@ -219,7 +219,7 @@ namespace Dune
{
return obj.attr( "_includes" ).cast<std::vector<std::string>>();
}
catch(pybind11::error_already_set )
catch(const pybind11::error_already_set& )
{
return {};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment