Skip to content

Importing redis_om can unexpectedly alter environment variables #154

Closed
@aberres

Description

@aberres

In redis_om/connections.py we find a call to dotenv.load_dotenv() which is executed at import time. IMHO a library should never do such things - at least not silently.

As an application developer, it is my responsibility ensure that all environment variables are read from whatever config I prefer. If I want to use dotenv to setup variables, it should be my job to do so.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions