feat: return False when we do not discover any environment variables by larsks · Pull Request #388 · theskumar/python-dotenv

@larsks changed the title fix/load dotenv return code Return False when we do not discover any environment variables

Mar 15, 2022
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

theskumar

theskumar

@theskumar

@theskumar 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

Jun 5, 2022

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, 2026