Skip to content

Commit

Permalink
check exception
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Dec 25, 2023
1 parent 0d336d9 commit e318f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rapidfuzz/distance/metrics_cpp.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ cdef inline bool is_none(s):

return False

cdef size_t get_score_cutoff_size_t(score_cutoff, default) except -1:
cdef size_t get_score_cutoff_size_t(score_cutoff, default) except *:
cdef size_t c_score_cutoff = default
if score_cutoff is None:
return c_score_cutoff
Expand All @@ -205,7 +205,7 @@ cdef double get_score_cutoff_f64(score_cutoff, double default) except -1:

return c_score_cutoff

cdef size_t get_score_hint_size_t(score_hint, size_t default) except -1:
cdef size_t get_score_hint_size_t(score_hint, size_t default) except *:
cdef size_t c_score_hint = default
if score_hint is None:
return c_score_hint
Expand Down

0 comments on commit e318f24

Please sign in to comment.