Merge branch 'testing' into dev
This commit is contained in:
@@ -96,13 +96,14 @@ class NWSpellCheck():
|
|||||||
lookup lists.
|
lookup lists.
|
||||||
"""
|
"""
|
||||||
self.projDict = []
|
self.projDict = []
|
||||||
if projectDict is not None:
|
|
||||||
if not os.path.isfile(projectDict):
|
|
||||||
self.projectDict = None
|
|
||||||
return False
|
|
||||||
else:
|
|
||||||
self.projectDict = projectDict
|
self.projectDict = projectDict
|
||||||
|
|
||||||
|
if projectDict is None:
|
||||||
|
return False
|
||||||
|
|
||||||
|
if not os.path.isfile(projectDict):
|
||||||
|
return False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
logger.debug("Loading project word list")
|
logger.debug("Loading project word list")
|
||||||
with open(projectDict, mode="r", encoding="utf-8") as wordsFile:
|
with open(projectDict, mode="r", encoding="utf-8") as wordsFile:
|
||||||
|
|||||||
Reference in New Issue
Block a user