Skip to content

Commit

Permalink
do not cache webServicesService.getStates failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Collins committed Feb 28, 2024
1 parent 1b90e5c commit 73c0205
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,9 @@ class WebServicesService {
}
} catch (Exception e) {
log.error "getStates failed to get states of " + countryName + ", error = " + e.getMessage()

// throw exception so that the bad result is not cached
throw e
}
matchingStates
}
Expand Down

0 comments on commit 73c0205

Please sign in to comment.