Skip to content

Commit

Permalink
add a general exception catch for Libphone parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
hyun-joo-kim committed Mar 9, 2017
1 parent 12736bb commit 7aae295
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ private void generateTokens() {
}
} catch (NumberParseException e) {
// Libphone didn't like it, no biggie. We'll just ngram the number as it is.
} catch (Exception e) {
// Ignored if Libphone cannot parse it.
}

// ngram the phone number EG 19198243333 produces 9, 91, 919, etc
Expand Down

0 comments on commit 7aae295

Please sign in to comment.