diff options
author | lovetox <philipp@hoerist.com> | 2021-05-08 13:24:06 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2021-07-24 22:45:22 +0300 |
commit | d3735912151ea95a248d0bf6ab4e74ab5fa21b6f (patch) | |
tree | 8ade8c200b8858bdac3ab0148d56daf0bd367ac1 | |
parent | a808009a4c927738797aa8eda947bfef7639bd81 (diff) |
GSSAPI: Catch OSError
Error is thrown when Kerberos for Windows is not installed
-rw-r--r-- | nbxmpp/auth.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nbxmpp/auth.py b/nbxmpp/auth.py index a917a6c..11ee64e 100644 --- a/nbxmpp/auth.py +++ b/nbxmpp/auth.py @@ -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 |