Browse Source

Merge "Except block now covers specific errors"

changes/50/786450/15
Zuul 6 months ago
committed by Gerrit Code Review
parent
commit
f4e8ada922
  1. 2
      validations_common/library/validations_read_ini.py

2
validations_common/library/validations_read_ini.py

@ -60,7 +60,7 @@ def get_result(path, section, key, default=None):
try:
config.read(path)
except Exception:
except (OSError, ConfigParser.ParsingError):
msg = "The file '{}' is not in a valid INI format.".format(path)
ret = ReturnValue.INVALID_FORMAT
return (ret, msg, value)

Loading…
Cancel
Save