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:
parent
d1dcf6e63f
commit
4b5534b070
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user