Fix typo in error message

This commit is contained in:
Herman Schaaf 2013-10-21 22:21:09 +09:00
parent 14a0ab0466
commit 95286b8887

View File

@ -383,7 +383,7 @@ def set_dictionary(dictionary_path):
with DICT_LOCK:
abs_path = os.path.normpath( os.path.join( os.getcwd(), dictionary_path ) )
if not os.path.exists(abs_path):
raise Exception("jieba: path does not exists:" + abs_path)
raise Exception("jieba: path does not exist:" + abs_path)
DICTIONARY = abs_path
initialized = False