1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-03 18:26:20 +00:00

Revert "OpenAI: use HttpException"

This reverts commit 944e08fd8f.
This commit is contained in:
M66B 2023-11-12 21:03:57 +01:00
parent 64b05a6641
commit 35243ea62e

View file

@ -31,7 +31,6 @@ import androidx.preference.PreferenceManager;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.jsoup.HttpStatusException;
import java.io.IOException;
import java.io.InputStream;
@ -227,7 +226,7 @@ public class OpenAI {
} catch (Throwable ex) {
Log.w(ex);
}
throw new HttpStatusException(error, status, uri.toString());
throw new IOException(error);
}
String response = Helper.readStream(connection.getInputStream());