From 1028a6338dae78241baf45e5213b8f6399862368 Mon Sep 17 00:00:00 2001 From: brunoais Date: Mon, 23 Jul 2018 14:41:26 +0100 Subject: [PATCH] Fixed log that used a variable that does not exist "Could not clear authc_info from cache" error had the variable as "identifiers" instead of "identifier" which lead to a NameError when there's no cache --- yosai/core/authz/authz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yosai/core/authz/authz.py b/yosai/core/authz/authz.py index b77ac17..1a7ad4d 100644 --- a/yosai/core/authz/authz.py +++ b/yosai/core/authz/authz.py @@ -425,7 +425,7 @@ def authc_clears_cache(self, identifier=None, topic=EVENT_TOPIC): realm.clear_cached_authorization_info(identifier) except AttributeError: msg = ('Could not clear authc_info from cache after event. ' - 'identifiers: ' + identifiers) + 'identifiers: ' + identifier) logger.warn(msg) def register_cache_clear_listener(self):