diff --git a/gssapi/raw/misc.pyx b/gssapi/raw/misc.pyx index 622bfb7e..7f9d9203 100644 --- a/gssapi/raw/misc.pyx +++ b/gssapi/raw/misc.pyx @@ -309,7 +309,7 @@ class GSSError(Exception, metaclass=GSSErrorRegistry): msg, ctx, cont = _display_status(code, is_maj, message_context=ctx) res.append(msg.decode(msg_encoding)) - except ValueError: + except ValueError as e: res.append(u'{0} Decoding code: {1}'.format(e, code)) cont = False