Adding 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:17 +01:00
parent 2f72ef8d68
commit 8a475bec34
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: