summaryrefslogtreecommitdiffstats
path: root/cfgv.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-17 07:06:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-17 07:06:27 +0000
commit9cef19d9d2495c9ac70fa81ea19885fc1c979041 (patch)
treecf969864de9d2208c16b01137c51ef99536acd38 /cfgv.py
parentReleasing debian version 3.2.0-5. (diff)
downloadcfgv-9cef19d9d2495c9ac70fa81ea19885fc1c979041.tar.xz
cfgv-9cef19d9d2495c9ac70fa81ea19885fc1c979041.zip
Merging upstream version 3.3.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'cfgv.py')
-rw-r--r--cfgv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cfgv.py b/cfgv.py
index f0b9eff..2a9ceab 100644
--- a/cfgv.py
+++ b/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: