Skip to content

Commit c5ce4a7

Browse files
chris1610RobinL
authored andcommitted
Update tokencomparison.py
Fix Zero Division Error as described in #39 and #42
1 parent 6a77d03 commit c5ce4a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fuzzymatcher/tokencomparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def is_mispelling(self, token1, token2):
4141
if max(t1f, t2f)/min(t1f, t2f) < self.number_fuzz_threshold:
4242
return True
4343

44-
except ValueError:
44+
except (ValueError, ZeroDivisionError):
4545
pass
4646

4747

0 commit comments

Comments
 (0)