Merging upstream version 3.3.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 20:42:40 +01:00
parent 380cf8dfa5
commit b3cb97a4b1
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
7 changed files with 24 additions and 14 deletions

View file

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