mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Do not fail miserably if not able to parse nginx conf
This commit is contained in:
parent
3399c15f73
commit
4a5d619ad1
1 changed files with 5 additions and 1 deletions
|
@ -240,7 +240,11 @@ class App():
|
|||
|
||||
if do_path_traversal_check:
|
||||
from lib.nginxparser import nginxparser
|
||||
try:
|
||||
nginxconf = nginxparser.load(open(self.path + "/conf/" + filename))
|
||||
except Exception as e:
|
||||
print_warning_not_reliable("Could not parse nginx conf ... : " + str(e))
|
||||
nginxconf = []
|
||||
|
||||
for location in find_path_traversal_issue(nginxconf):
|
||||
print_error(
|
||||
|
|
Loading…
Reference in a new issue