Catch all pyparsing exceptions

This commit is contained in:
Brad Warren 2016-08-16 19:34:16 -07:00
parent 465aa38143
commit 449487e8cb

View file

@ -180,7 +180,7 @@ class NginxParser(object):
return nginxparser.load(_file).spaced
except IOError:
logger.warn("Missing NGINX TLS options file: %s", ssl_options)
except pyparsing.ParseException:
except pyparsing.ParseBaseException:
logger.debug("Could not parse file: %s", ssl_options)
return []