Browse Source

Merge "Except block now covers specific errors"

changes/50/786450/15
Zuul 3 weeks ago
committed by Gerrit Code Review
parent
commit
f4e8ada922
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      validations_common/library/validations_read_ini.py

+ 1
- 1
validations_common/library/validations_read_ini.py View File

@ -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