From c1bc47f13cc3e3fd98f9a7b1661466a39d9906f7 Mon Sep 17 00:00:00 2001 From: Tamir Kamara <26870601+tamirkamara@users.noreply.github.com> Date: Tue, 4 Feb 2025 10:37:21 +0000 Subject: [PATCH] fix e2e config --- e2e_tests/config.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/e2e_tests/config.py b/e2e_tests/config.py index cd43a78181..5091d52bed 100644 --- a/e2e_tests/config.py +++ b/e2e_tests/config.py @@ -1,11 +1,10 @@ +import warnings from starlette.config import Config -try: - config = Config('.env') -# Workaround needed until FastAPI uses Starlette >= 3.7.1 -except FileNotFoundError: - config = Config() +warnings.filterwarnings("ignore", message="Config file '.env' not found.") + +config = Config('.env') # Resource Info RESOURCE_LOCATION: str = config("RESOURCE_LOCATION", default="")