feat: return False when we do not discover any environment variables by larsks · Pull Request #388 · theskumar/python-dotenv
changed the title
fix/load dotenv return code
Return False when we do not discover any environment variables
The docstring for load_dotenv was missing a word, rendering it confusing. This commits modifies it for clarity.
This modifies Dotenv.set_as_environment_variables to return False if we have not discovered any environment variables via either `dotenv_path` or `stream`. The return value gets passed through to `load_dotenv`, so this can be used to determine if `dotenv.load_dotenv` was able to set anything. Closes theskumar#321
This was referenced
Jun 5, 2022
theskumar
changed the title
Return False when we do not discover any environment variables
feat: return False when we do not discover any environment variables
theskumar added a commit that referenced this pull request
Jun 5, 2022* master: feat: return False when we do not discover any environment variables (#388)
This was referenced
Mar 15, 2026This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters