# HG changeset patch # User Franz Glasner # Date 1599692956 -7200 # Node ID 39c379fa8c65f6c61779351f366d8fa737864441 # Parent 1a4dae6bd9678035c1ee3a08cd5e4d80647fccce FIX: Check the return value when calling only when the callable has been really called. Now the association mapping of filename to file modes follows really the documentation. diff -r 1a4dae6bd967 -r 39c379fa8c65 configmix/__init__.py --- a/configmix/__init__.py Tue Jul 28 08:37:37 2020 +0200 +++ b/configmix/__init__.py Thu Sep 10 01:09:16 2020 +0200 @@ -304,8 +304,8 @@ if fnmatch.fnmatch(filename, p): if callable(m): m = m(filename) - if m is None: - continue + if m is None: + continue return mode_loaders[m](filename) else: raise ValueError("Unknown configuration file type for filename "