summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gnoutcheff <gnoutchd@softwarefreedom.org>2016-07-19 17:07:49 -0400
committerDaniel Gnoutcheff <gnoutchd@softwarefreedom.org>2016-07-19 17:07:49 -0400
commitc51dcc263928f1b0610a74fc4f12a7ea60c59f6f (patch)
tree806e3babc51422563b93648792432a504db5aa51
parent08b5cc27eb37ea9996aea7561d8352e23a11014c (diff)
avfs: don't break on un-stat-able files
-rw-r--r--avfs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/avfs.py b/avfs.py
index ca75062..5e877ef 100644
--- a/avfs.py
+++ b/avfs.py
@@ -96,6 +96,8 @@ def find(path, excludes):
name = os.path.basename(path)
mode = get_lstat_mode(sys_path)
+ if mode is None:
+ return
if name in excludes:
return