mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 23:50:03 -06:00
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>
This commit is contained in:
parent
cc5ad6b3f9
commit
2f567f0e8e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user