From c51dcc263928f1b0610a74fc4f12a7ea60c59f6f Mon Sep 17 00:00:00 2001 From: Daniel Gnoutcheff Date: Tue, 19 Jul 2016 17:07:49 -0400 Subject: avfs: don't break on un-stat-able files --- avfs.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3