Skip to content

Commit

Permalink
Catch Throwable instead of exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Foso committed Sep 1, 2024
1 parent cc00667 commit a1d8bee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public class KtorfitConverterHelper(
requestBuilder(this)
},
)
} catch (exception: Exception) {
KtorfitResult.Failure(exception)
} catch (throwable: Throwable) {
KtorfitResult.Failure(throwable)
}
return it.convert(result) as ReturnType?
}
Expand Down

0 comments on commit a1d8bee

Please sign in to comment.