[libcalamares] Avoid object-slice

g++ warns that error_already_set is polymorphic, and we're catching
by-value (although we don't use that value). Avoid that.
This commit is contained in:
Adriaan de Groot 2020-10-24 13:19:42 +02:00
parent 84936a95fc
commit 7fa1c1b787

View File

@ -284,7 +284,7 @@ PythonJob::exec()
return JobResult::error( message, description );
}
}
catch ( bp::error_already_set )
catch ( bp::error_already_set& )
{
QString msg;
if ( PyErr_Occurred() )