1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 09:16:14 +01:00

Load empty optional configuration values as 'None'

This commit is contained in:
Daniel Mach 2023-09-25 10:15:52 +02:00
parent d1dcf6e63f
commit 4b5534b070

View File

@ -179,7 +179,7 @@ class OscOptions(BaseModel):
if not value.strip():
if field.is_optional:
setattr(self, field_name, value)
setattr(self, field_name, None)
return
if field.origin_type is Password: