Skip to content

Commit

Permalink
Show calling function in warning
Browse files Browse the repository at this point in the history
  • Loading branch information
merwok committed Jan 16, 2017
1 parent 76ad713 commit 4c5b61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotenv.py
Expand Up @@ -53,7 +53,7 @@ def read_dotenv(dotenv=None):
for k, v in parse_dotenv(f.read()).items():
os.environ.setdefault(k, v)
else:
warnings.warn("Not reading {0} - it doesn't exist.".format(dotenv))
warnings.warn("Not reading {0} - it doesn't exist.".format(dotenv), stacklevel=2)


def parse_dotenv(content):
Expand Down

0 comments on commit 4c5b61c

Please sign in to comment.