diff --git a/flask_kerberos.py b/flask_kerberos.py index 9d68ac2..84320e0 100755 --- a/flask_kerberos.py +++ b/flask_kerberos.py @@ -32,7 +32,7 @@ def init_kerberos(app, service='HTTP', hostname=gethostname()): try: principal = kerberos.getServerPrincipalDetails(service, hostname) except kerberos.KrbError as exc: - app.logger.warn("Kerberos: %s" % exc.message[0]) + app.logger.warn("Kerberos: %s" % str(exc)) else: app.logger.info("Kerberos: server is %s" % principal)