You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modulemd.ModuleStream.read_string has two optional arguments, module_name and module_stream. When interfacing with them in Python, None values are not allowed. Empty strings do work however. Here is the reproducer:
Traceback (most recent call last):
File "reproducer.py", line 8, in <module>
Modulemd.ModuleStream.read_string(mmd_str, None, None)
TypeError: Argument 1 does not allow None as a value
The text was updated successfully, but these errors were encountered:
The problem here is that you are actually missing the strict argument, which is non-nullable. You probably want to do Modulemd.ModuleStream.read_string(mmd_str, False, None, None) here. (Modulemd.ModuleStream.read_string(mmd_str, False) will also work.
Actually, for MBS we probably want to have True there. We want False for DNF to be more tolerant, but on the packager side I think it makes sense to reject unknown values.
Modulemd.ModuleStream.read_string
has two optional arguments,module_name
andmodule_stream
. When interfacing with them in Python,None
values are not allowed. Empty strings do work however. Here is the reproducer:This causes the following traceback:
The text was updated successfully, but these errors were encountered: