pospell should not raise exception if invalid/missing dictionary is passed #4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently a
TypeError
is raised if a dictionary passed is not found.This should be handled more gracefully.
Can you try the mdk-missing-dict branch, typically via:
Not working well.
Haha :(
I fixed the fix, can you please try again?
Different error now.
This is what's inside
list_of_lists
raising a TypeError inreturn [element for a_list in list_of_lists for element in a_list]
:Ohhh nice catch. It happened because you mixed the
-l
and-d
argument, but yet it should not crash.I fixed it.
Can you try again?
I followed the OP command in the latest and it still gives TypeError on invalid value for
-l
in the latest commitcf6c1c8
.So, it seems the integer objects are caused by
parcial = functools.partial(run_hunspell, language, personal_dict)
(line 386) returning a list with[-1, -1, -1, -1]
because the functionrun_hunspell
returns-1
(line 336) whensubprocess.CalledProcessError
is raised (and it raises because hunspell doesn't find the languagemissing
).I think this is fixed. I added type annotation to
run_hunspell
to ensure we don't return -1 in the future.