-
Line 62 in bc90057 from starlette.config import Config
Config(".env") |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
PR welcome. |
Beta Was this translation helpful? Give feedback.
-
Was raising an error implemented ? Deployment pipeline has crashed when fastapi (which has starlette as a dependency) released a new version. tests/conftest.py:9: in |
Beta Was this translation helpful? Give feedback.
-
It would be great if the release notes could call this out as a (breaking) change. In my project I used to use Perhaps a better solution would be to have a warning if the file is missing? Or to have classmethods on In case useful to others I'm now doing this: try:
config = Config('.env')
except FileNotFoundError:
config = Config() |
Beta Was this translation helpful? Give feedback.
-
Didn't we revert this, and use warning instead of error? or something... |
Beta Was this translation helpful? Give feedback.
PR welcome.