Skip to content

Commit

Permalink
Removing catchall exception (#21)
Browse files Browse the repository at this point in the history
Nothing in the input CSV triggers it, so it's not doing anything useful
  • Loading branch information
mtlynch committed May 1, 2018
1 parent 40533a3 commit 6640e2e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ingredient_phrase_tagger/training/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,8 @@ def _matchUp(token, ingredientRow):
ret.append(key.upper())

elif decimalToken is not None:
try:
if val == decimalToken:
ret.append(key.upper())
except:
pass
if val == decimalToken:
ret.append(key.upper())

return ret

Expand Down

0 comments on commit 6640e2e

Please sign in to comment.