Skip to content

Commit

Permalink
Merge pull request #742 from mihailim/fix-py312-plugin-error
Browse files Browse the repository at this point in the history
Catch AttributeError in addition to OSError in pluginhunspell.py
  • Loading branch information
kevinhendricks authored Feb 28, 2024
2 parents 1433c96 + cd03e70 commit f7cd5fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, hunspell_dllpath):
try:
# First use bundled hunspell location.
self.hunspell = cdll[hunspell_dllpath]
except OSError:
except (OSError, AttributeError):
# No bundled (or incompatible bundled) libhunspell found.
# found. So search for system libhunspell.
self.hunspell = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, hunspell_dllpath):
try:
# First use bundled hunspell location.
self.hunspell = cdll[hunspell_dllpath]
except OSError:
except (OSError, AttributeError):
# No bundled (or incompatible bundled) libhunspell found.
# found. So search for system libhunspell.
self.hunspell = None
Expand Down

0 comments on commit f7cd5fd

Please sign in to comment.