diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:06:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:06:10 +0000 |
commit | 850d2f95de58c61926e7aa9eed5c26d3954f6095 (patch) | |
tree | be44ba77f197e04a5e813c1624952b7b38c6f186 /cfgv.py | |
parent | Adding upstream version 3.2.0. (diff) | |
download | cfgv-upstream/3.3.0.tar.xz cfgv-upstream/3.3.0.zip |
Adding upstream version 3.3.0.upstream/3.3.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | cfgv.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |