commit a24ca00d09f00cb29d59dba8b98f942a3ba8f03e
parent 16df29907891de563cee97ba50f696102e636ccd
Author: lash <dev@holbrook.no>
Date: Thu, 13 Oct 2022 11:55:59 +0000
Handle none input for override dirs
Diffstat:
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG b/CHANGELOG
@@ -1,3 +1,7 @@
+0.6.3
+ - Avoid crash when None value of override dirs in instantiation
+0.6.2
+ - Allow schema dir input as list
0.6.1
- Make schema and override dirs settable after instantiation
- Remove forced source dir for pgp key bundles
diff --git a/confini/config.py b/confini/config.py
@@ -55,6 +55,8 @@ class Config:
if isinstance(override_dirs, str):
override_dirs = [override_dirs]
+ elif override_dirs == None:
+ override_dirs = []
for d in override_dirs:
self.add_override_dir(d)
diff --git a/setup.py b/setup.py
@@ -6,7 +6,7 @@ f.close()
setup(
name='confini',
- version='0.6.2',
+ version='0.6.3',
description='Parse, verify and merge all ini files in a single directory',
author='Louis Holbrook',
author_email='dev@holbrook.no',