Skip to content

Commit

Permalink
Check explicitly if variable is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
sloretz committed Jun 5, 2018
1 parent 5c7e72b commit 8592186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_cli/test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
def require_environment_variable(name):
"""Get environment variable or raise if it does not exist."""
path = os.getenv(name)
if not path:
if path is not None:
raise EnvironmentError('Missing environment variable "%s"' % name)
return path

Expand Down

0 comments on commit 8592186

Please sign in to comment.