From 4b5534b07083c0e0fc24d83cbed103a6dda11961 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Mon, 25 Sep 2023 10:15:52 +0200 Subject: [PATCH] Load empty optional configuration values as 'None' --- osc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/conf.py b/osc/conf.py index 4f6ea4bc..77f10057 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -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: