summaryrefslogtreecommitdiff
path: root/coverage/files.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/files.py')
-rw-r--r--coverage/files.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/coverage/files.py b/coverage/files.py
index 3968b567..bf60f8b4 100644
--- a/coverage/files.py
+++ b/coverage/files.py
@@ -38,6 +38,8 @@ class FileLocator(object):
f = os.path.basename(f)
if not os.path.isabs(f):
for path in [os.curdir] + sys.path:
+ if path is None:
+ continue
g = os.path.join(path, f)
if os.path.exists(g):
f = g