Skip to content

Commit

Permalink
Håndterer at request mot omsorgsdager-app feiler ved søk i los.
Browse files Browse the repository at this point in the history
  • Loading branch information
baskevold committed Nov 13, 2023
1 parent 3d1149e commit 67dc69b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,12 @@ class OppgaveTjeneste constructor(
val oppgaver = hentOppgaver(aktorId)

//sjekker om det finnes en visningsak i omsorgsdager
val oppgaveDto = hentOmsorgsdagerForFnr(query, person.person.navn())
val oppgaveDto = try {
hentOmsorgsdagerForFnr(query, person.person.navn())
} catch (e: Exception) {
log.info("Feilet ved søk mot omsorgsdager")
null
}
if (oppgaveDto != null) {
oppgaver.add(oppgaveDto)
}
Expand Down

0 comments on commit 67dc69b

Please sign in to comment.