summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2016-10-05 15:16:30 -0400
committerMartin Basti <mbasti@redhat.com>2016-10-25 14:01:06 +0200
commit2f567f0e8eb53306c5a3ecc04ac93e375b9c07d1 (patch)
tree21dfd903ca99fa321a83264ea518ff1b7db44d86
parentcc5ad6b3f951a6cb8298181690248d680c39922b (diff)
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 <simo@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
-rw-r--r--ipalib/rpc.py3
1 files changed, 2 insertions, 1 deletions
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