From 4c0a4987486224c214ee09289824d197f0af6c10 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 2 Oct 2018 21:33:17 +0200 Subject: [PATCH] smoothen error handling --- sfa/trust/auth.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py index f8ac90f3..b481bbd0 100644 --- a/sfa/trust/auth.py +++ b/sfa/trust/auth.py @@ -68,6 +68,8 @@ class Auth: error = (None, None) def log_invalid_cred(cred, exception): + if isinstance(cred, dict) and 'geni_value' in cred: + cred = cred['geni_value'] if not isinstance(cred, StringType): logger.info( "{}: cannot validate credential {}" -- 2.43.0