Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Ignore all errors deserializing error body
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Carr committed Jul 5, 2018
1 parent 3910271 commit 32c163a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.rlac.retrofitbolts;

import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
Expand Down Expand Up @@ -102,7 +101,7 @@ private Task<T> createTask(@NonNull Executor executor) {
try {
//noinspection ConstantConditions
errorBody = errorConverter.convert(response.errorBody());
} catch (IOException ignore) {
} catch (Exception ignore) {
errorBody = null;
}
}
Expand Down

0 comments on commit 32c163a

Please sign in to comment.