From 2f567f0e8eb53306c5a3ecc04ac93e375b9c07d1 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 5 Oct 2016 15:16:30 -0400 Subject: [PATCH] Fix error message encoding - Use the correct unicode string for an error message, otherwise an exception will generate another exception about incorrect type, masking the original error. Signed-off-by: Simo Sorce Reviewed-By: Alexander Bokovoy --- ipalib/rpc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipalib/rpc.py b/ipalib/rpc.py index 9594ab5ca..7756eafe5 100644 --- a/ipalib/rpc.py +++ b/ipalib/rpc.py @@ -603,7 +603,8 @@ class KerbTransport(SSLTransport): except (TypeError, UnicodeError): pass if not token: - raise KerberosError(message="No valid Negotiate header in server response") + raise KerberosError( + message=u"No valid Negotiate header in server response") token = self._sec_context.step(token=token) if self._sec_context.complete: self._sec_context = None