Skip to content

Commit d1ec382

Browse files
committed
fix
1 parent 8ae8b9c commit d1ec382

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ class CustomEnvSettingsSource(EnvSettingsSource):
3838
def prepare_field_value(
3939
self, field_name: str, field: FieldInfo, value: Any, value_is_complex: bool
4040
) -> Any:
41-
if value and field_name in [
41+
if field_name in [
4242
"ignore_actions",
4343
"pull_request_user_reviewers",
4444
"pull_request_team_reviewers",
4545
"pull_request_labels",
4646
"release_types",
4747
"extra_workflow_locations",
4848
]:
49+
if not value:
50+
return None
4951
if value.startswith("[") and value.endswith("]"):
5052
return frozenset(json.loads(value))
5153
return frozenset(s.strip() for s in value.strip().split(",") if s)

0 commit comments

Comments
 (0)