Skip to content

Commit 536e1b1

Browse files
Fix issue #1373
Signed-off-by: Jacki <[email protected]>
1 parent d12df77 commit 536e1b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manuskript/functions/spellchecker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
import symspellpy
2222
import distutils.version
2323

24-
if distutils.version.LooseVersion(symspellpy.__version__) < SYMSPELLPY_MIN_VERSION:
24+
if ((not hasattr(symspellpy, '__version__')) or
25+
(distutils.version.LooseVersion(symspellpy.__version__) < SYMSPELLPY_MIN_VERSION)):
2526
symspellpy = None
2627

2728
except ImportError:

0 commit comments

Comments
 (0)