registerups: More errors handling in config parsing
This commit is contained in:
parent
098714d37d
commit
86fde13375
|
@ -109,7 +109,8 @@ try:
|
||||||
configuration[section][param] = config.get(section, param)
|
configuration[section][param] = config.get(section, param)
|
||||||
except (configparser.NoOptionError,
|
except (configparser.NoOptionError,
|
||||||
configparser.MissingSectionHeaderError,
|
configparser.MissingSectionHeaderError,
|
||||||
configparser.ParsingError) as err:
|
configparser.ParsingError,
|
||||||
|
configparser.NoSectionError) as err:
|
||||||
print('Configuration file parsing error:\n' + str(err))
|
print('Configuration file parsing error:\n' + str(err))
|
||||||
sys.exit(3)
|
sys.exit(3)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue