Skip to content

Commit

Permalink
catch IOException in outer scope only
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Sep 25, 2023
1 parent 6c23e27 commit 452491a
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -569,9 +569,6 @@ class OathManager(
useOathSessionUsb(usbYubiKeyDevice) { session ->
try {
oathViewModel.updateCredentials(calculateOathCodes(session))
} catch (ioException: IOException) {
logger.error("Exception while calculating codes: ", ioException)
clearCodes()
} catch (apduException: ApduException) {
if (apduException.sw == SW.SECURITY_CONDITION_NOT_SATISFIED) {
logger.debug("Handled oath credential refresh on locked session.")
Expand Down

0 comments on commit 452491a

Please sign in to comment.