Commit c6664d06 by Vik Paruchuri

Fix issue with aspell not working properly

parent 8930995c
...@@ -76,7 +76,8 @@ def spell_correct(string): ...@@ -76,7 +76,8 @@ def spell_correct(string):
try: try:
p = os.popen(aspell_path + " -a < " + f_path + " --sug-mode=ultra") p = os.popen(aspell_path + " -a < " + f_path + " --sug-mode=ultra")
except: except:
return string,0 log.exception("Could not find aspell, so could not spell correct!")
return string,0, string
incorrect = p.readlines() incorrect = p.readlines()
p.close() p.close()
incorrect_words = list() incorrect_words = list()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment