From 0cd6b2a8b02d96634c627a9181f2194af8414357 Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 27 Oct 2021 08:46:46 +0200 Subject: [PATCH] raise on ignored config in auth Co-authored-by: Erik Sundell --- tljh/configurer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tljh/configurer.py b/tljh/configurer.py index 52b78ab..89bfd33 100644 --- a/tljh/configurer.py +++ b/tljh/configurer.py @@ -190,7 +190,9 @@ def update_auth(c, config): for auth_key, auth_value in tljh_auth_config.items(): if not (auth_key[0] == auth_key[0].upper() and isinstance(auth_value, dict)): - continue + if auth_key == 'type': + continue + raise ValueError(f"Error: auth.{auth_key} was ignored, it didn't look like a valid configuration") class_name = auth_key class_config_to_set = auth_value class_config = c[class_name]