diff --git a/src/Resource_Files/plugin_launchers/python/pluginhunspell.py b/src/Resource_Files/plugin_launchers/python/pluginhunspell.py index 341b434ed0..2ef52a8048 100644 --- a/src/Resource_Files/plugin_launchers/python/pluginhunspell.py +++ b/src/Resource_Files/plugin_launchers/python/pluginhunspell.py @@ -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 diff --git a/src/Resource_Files/plugin_launchers/python/pluginhunspellml.py b/src/Resource_Files/plugin_launchers/python/pluginhunspellml.py index c7ce8a981b..aa53787261 100644 --- a/src/Resource_Files/plugin_launchers/python/pluginhunspellml.py +++ b/src/Resource_Files/plugin_launchers/python/pluginhunspellml.py @@ -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