registerups: More errors handling in config parsing

This commit is contained in:
Sergey Morozov 2019-08-26 14:57:17 +03:00
parent 098714d37d
commit 86fde13375
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@ try:
configuration[section][param] = config.get(section, param)
except (configparser.NoOptionError,
configparser.MissingSectionHeaderError,
configparser.ParsingError) as err:
configparser.ParsingError,
configparser.NoSectionError) as err:
print('Configuration file parsing error:\n' + str(err))
sys.exit(3)