mirror of
https://github.com/certbot/certbot.git
synced 2026-07-31 18:34:41 +02:00
Catch all pyparsing exceptions
This commit is contained in:
@@ -180,7 +180,7 @@ class NginxParser(object):
|
|||||||
return nginxparser.load(_file).spaced
|
return nginxparser.load(_file).spaced
|
||||||
except IOError:
|
except IOError:
|
||||||
logger.warn("Missing NGINX TLS options file: %s", ssl_options)
|
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)
|
logger.debug("Could not parse file: %s", ssl_options)
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user