Skip to content

Commit

Permalink
fixed minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ethsanders committed Dec 14, 2021
1 parent 279ed07 commit f4307be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dotenv/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ def run(ctx: click.Context, override: bool, commandline: List[str]) -> None:
def example_file(ctx: click.Context):
'''Generates a .example.env file without values.'''
filedir = ctx.obj['FILE'].replace("\\", "/")
if not os.path.isfile(file):
if not os.path.isfile(filedir):
raise click.BadParameter(
'Path "%s" does not exist.' % (file),
'Path "%s" does not exist.' % (filedir),
ctx=ctx
)
newFileList = []
Expand Down

0 comments on commit f4307be

Please sign in to comment.