Skip to content

Commit

Permalink
Update conn.py to catch OSError in case of failed import (dpkp#2407)
Browse files Browse the repository at this point in the history
Closes dpkp#2399.
  • Loading branch information
wbarnha authored and bradenneal1 committed May 16, 2024
1 parent 18a373a commit 4f47391
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 4f47391

Please sign in to comment.