Skip to content

Commit

Permalink
Update conn.py to catch OSError in case of failed import (#2407)
Browse files Browse the repository at this point in the history
Closes #2399.
  • Loading branch information
wbarnha committed Nov 3, 2023
1 parent 0dbf746 commit 38e8d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafka/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class SSLWantWriteError(Exception):
try:
import gssapi
from gssapi.raw.misc import GSSError
except ImportError:
except (ImportError, OSError):
#no gssapi available, will disable gssapi mechanism
gssapi = None
GSSError = None
Expand Down

0 comments on commit 38e8d04

Please sign in to comment.