From 95286b88879754ecae96497a207ba2271c55b59a Mon Sep 17 00:00:00 2001 From: Herman Schaaf Date: Mon, 21 Oct 2013 22:21:09 +0900 Subject: [PATCH] Fix typo in error message --- jieba/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jieba/__init__.py b/jieba/__init__.py index 4a00813..0a7fb85 100644 --- a/jieba/__init__.py +++ b/jieba/__init__.py @@ -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