mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
LanguageTool: use HttpStatusException
This commit is contained in:
@@ -60,6 +60,7 @@ import com.google.android.material.snackbar.Snackbar;
|
||||
import org.jsoup.nodes.Document;
|
||||
import org.jsoup.nodes.Element;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -687,7 +688,7 @@ public class FragmentAnswer extends FragmentBase {
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
Throwable exex = new Throwable("LanguageTool", ex);
|
||||
Log.unexpectedError(getParentFragmentManager(), exex, false);
|
||||
Log.unexpectedError(getParentFragmentManager(), exex, !(ex instanceof IOException));
|
||||
}
|
||||
}.execute(this, args, "answer:lt");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user