From b29787d8eeef268c055f7352f0693c7b69351b84 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 5 Dec 2017 11:21:17 +0100 Subject: Do not fail because of missing files in source lists --- bin/flycheck-android-java.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/flycheck-android-java.py b/bin/flycheck-android-java.py index c679f8b..ae52fe7 100644 --- a/bin/flycheck-android-java.py +++ b/bin/flycheck-android-java.py @@ -116,7 +116,7 @@ def file_in_list(needle, files): Otherwise return None.""" if os.path.exists(needle): for i in range(0, len(files) - 1): - if os.path.samefile(needle, files[i]): + if os.path.exists(files[i]) and os.path.samefile(needle, files[i]): return files[0:i] + files[i + 1:] return None -- cgit v1.2.3-70-g09d2