Catch all pyparsing exceptions

This commit is contained in:
Brad Warren 2016-08-16 15:46:31 -07:00
parent 0b0eca323c
commit 7fb5cf1cf5

View file

@ -169,7 +169,7 @@ class NginxParser(object):
trees.append(parsed)
except IOError:
logger.warning("Could not open file: %s", item)
except pyparsing.ParseException:
except pyparsing.ParseBaseException:
logger.debug("Could not parse file: %s", item)
return trees