Skip to content

Commit

Permalink
Handle invalid config better and log it
Browse files Browse the repository at this point in the history
  • Loading branch information
samwiseg0 committed Dec 10, 2018
1 parent 15bd7b5 commit 8a0cae4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion varken/iniparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ def __init__(self, data_folder):
self.ciscoasa_enabled = False
self.ciscoasa_firewalls = []

self.parse_opts()
try:
self.parse_opts()
except configparser.NoOptionError as e:
logger.error(e)

def enable_check(self, server_type=None):
t = server_type
Expand Down

0 comments on commit 8a0cae4

Please sign in to comment.