Skip to content

Commit

Permalink
Fix check for non null keys in os.environ
Browse files Browse the repository at this point in the history
  • Loading branch information
saketkc committed Feb 17, 2014
1 parent 01a0395 commit 370c84c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ def get_config(key=None, default=None, raise_error=False, home_dir=None):
raise ValueError('key must be a string')

# first, check to see if key is in env
if key in os.environ:
if key is not None and key in os.environ:
return os.environ[key]

# second, look for it in mne-python config file
Expand Down

0 comments on commit 370c84c

Please sign in to comment.