Skip to content

Commit

Permalink
fix: handle exceptions when retrieving login disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
jarnedemeulemeester committed Aug 31, 2024
1 parent 6e859b4 commit 8c148f3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ constructor(

private fun loadDisclaimer() {
viewModelScope.launch {
loginDisclaimer = jellyfinApi.brandingApi.getBrandingOptions().content.loginDisclaimer
_uiState.emit(UiState.Normal(loginDisclaimer))
try {
loginDisclaimer = jellyfinApi.brandingApi.getBrandingOptions().content.loginDisclaimer
_uiState.emit(UiState.Normal(loginDisclaimer))
} catch (_: Exception) {}
}
}

Expand Down

0 comments on commit 8c148f3

Please sign in to comment.