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="")