Commit a8edce24 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

GSSAPI: Catch OSError

Error is thrown when Kerberos for Windows is not installed
parent 6e3bc165
......@@ -37,7 +37,8 @@ log = logging.getLogger('nbxmpp.auth')
try:
gssapi = __import__('gssapi')
GSSAPI_AVAILABLE = True
except ImportError:
except (ImportError, OSError) as error:
log.warning('GSSAPI not available: %s', error)
GSSAPI_AVAILABLE = False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment