Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put an upper limit on the time KeyInFileError takes to print itself #595

Merged

Conversation

jpivarski
Copy link
Member

(about 20 ms) by limiting damerau_levenshtein to 1000 strings.

I seem to remember this being an issue for you, @kratsg, because something was using try-except KeyInFileError to determine whether a key exists in files with lots of keys. The damerau_levenshtein algorithm is for helping users find a mistyped key, but we don't want it hurting automated processes.

…about 20 ms) by limiting damerau_levenshtein to 1000 strings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant