Skip to content

Commit

Permalink
Merge pull request #22 from merwok-forks/fix-warning-stacklevel
Browse files Browse the repository at this point in the history
Show calling function in warning
  • Loading branch information
jpadilla committed Jan 17, 2017
2 parents 76ad713 + f879413 commit fb0fb72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dotenv.py
Expand Up @@ -53,7 +53,8 @@ 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 fb0fb72

Please sign in to comment.