1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-27 19:42:53 +03:00

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 []