Skip to content

Commit

Permalink
Merge pull request #325 from navikt/feature/try-catch-feil-eksterne-kall
Browse files Browse the repository at this point in the history
Try/catch rundt kall til Sigrun
  • Loading branch information
rinnan17 authored Mar 13, 2024
2 parents 46f77ea + f344763 commit 028ef6c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ class OppdaterSkattegrunnlag(
SECURE_LOGGER.info("Kaller Sigrun (skattegrunnlag) med request: $skattegrunnlagRequest")

try {
val restResponseSkattegrunnlag = sigrunConsumer.hentSummertSkattegrunnlag(skattegrunnlagRequest)

when (restResponseSkattegrunnlag) {
when (val restResponseSkattegrunnlag = sigrunConsumer.hentSummertSkattegrunnlag(skattegrunnlagRequest)) {
is RestResponse.Success -> {
var antallSkattegrunnlagsposter = 0
val skattegrunnlagResponse = restResponseSkattegrunnlag.body
Expand Down

0 comments on commit 028ef6c

Please sign in to comment.