mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Do not miserably fail if /conf doesnt exists
This commit is contained in:
parent
d53ee42a7f
commit
a9559d7953
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ class App():
|
||||||
# - Spot path traversal issue vulnerability
|
# - 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
|
# Ignore subdirs or filename not containing nginx in the name
|
||||||
if not os.path.isfile(self.path + "/conf/" + filename) or "nginx" not in filename:
|
if not os.path.isfile(self.path + "/conf/" + filename) or "nginx" not in filename:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue