From a9559d795361e347598e65d948bb9a201cd2f956 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 31 Mar 2020 21:22:35 +0200 Subject: [PATCH] Do not miserably fail if /conf doesnt exists --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 41ca778..131ea85 100755 --- a/package_linter.py +++ b/package_linter.py @@ -344,7 +344,7 @@ class App(): # - Spot path traversal issue vulnerability # - for filename in os.listdir(self.path + "/conf"): + for filename in os.listdir(self.path + "/conf") if os.path.exists(self.path + "/conf") else []: # Ignore subdirs or filename not containing nginx in the name if not os.path.isfile(self.path + "/conf/" + filename) or "nginx" not in filename: continue