[libcalamares] Return None for empty GS keys

All unknown-variants return None, but this only
happens in practice with an empty variant (e.g.
a configuration key that is empty in the YAML).

FIXES #2237
This commit is contained in:
Adriaan de Groot 2023-11-16 23:16:41 +01:00
parent 8305b6cb1a
commit 146f549552

View File

@ -95,7 +95,7 @@ variantToPyObject( const QVariant& variant )
case QVariant::Invalid:
#endif
default:
return py::object();
return py::none();
}
#ifdef __clang__
#pragma clang diagnostic pop