Mercurial > hgrepos > Python > libs > ConfigMix
changeset 40:8d66aef2f7fb
Comment about exceptions when filters are missing.
Missing filters are regarded as more serious errors than missing variables.
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Thu, 07 Apr 2016 23:19:51 +0200 |
| parents | 8715e5cc59ac |
| children | e7b4126bc14b |
| files | configmix/config.py |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configmix/config.py Thu Apr 07 23:12:12 2016 +0200 +++ b/configmix/config.py Thu Apr 07 23:19:51 2016 +0200 @@ -215,6 +215,10 @@ try: filterfn = lookup_filter(name) except KeyError: + # + # Convert to NameError because we find a missing filters + # a very serious error. + # raise NameError("Filter %r not found" % name) else: value = filterfn(self, value)
