A final small fix, hopefully

This commit is contained in:
Ola Bini 2016-01-22 16:28:05 -05:00
parent 613250e1b2
commit f4a130eab3
No known key found for this signature in database
GPG key ID: 465757AF3914B4B7

View file

@ -175,11 +175,10 @@ class NginxParser(object):
with open(ssl_options) as _file:
return nginxparser.load(_file)
except IOError:
logger.debug("Could not open file: %s", item)
logger.debug("Could not open file: %s", ssl_options)
except pyparsing.ParseException:
logger.debug("Could not parse file: %s", item)
else:
return []
logger.debug("Could not parse file: %s", ssl_options)
return []
def _set_locations(self, ssl_options):
"""Set default location for directives.