Merging upstream version 3.3.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
380cf8dfa5
commit
b3cb97a4b1
7 changed files with 24 additions and 14 deletions
4
cfgv.py
4
cfgv.py
|
@ -392,8 +392,8 @@ def load_from_filename(
|
|||
exc_tp=ValidationError,
|
||||
):
|
||||
with reraise_as(exc_tp):
|
||||
if not os.path.exists(filename):
|
||||
raise ValidationError(f'{filename} does not exist')
|
||||
if not os.path.isfile(filename):
|
||||
raise ValidationError(f'{filename} is not a file')
|
||||
|
||||
with validate_context(f'File {filename}'):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue