]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
♻️ Fix `notify_translations.py` empty env var handling for PR label events vs workflo...
authorSebastián Ramírez <tiangolo@gmail.com>
Tue, 28 Jan 2025 22:30:15 +0000 (22:30 +0000)
committerGitHub <noreply@github.com>
Tue, 28 Jan 2025 22:30:15 +0000 (22:30 +0000)
scripts/notify_translations.py

index 7a43019a6e5a6c5f5cc864cb809d51e679489d31..c300624db271ea48e4535f17dafdeb9fcecec58b 100644 (file)
@@ -176,6 +176,8 @@ class AllDiscussionsResponse(BaseModel):
 
 
 class Settings(BaseSettings):
+    model_config = {"env_ignore_empty": True}
+
     github_repository: str
     github_token: SecretStr
     github_event_path: Path