fix(metadata): detect retryable errors in LubimyCzytac parser (#1788)

This commit is contained in:
James Ward
2026-06-22 17:35:25 -04:00
committed by GitHub
parent b4b5468f2a
commit e9b2eeb57b
2 changed files with 108 additions and 3 deletions
@@ -443,9 +443,9 @@ public class LubimyCzytacParser implements BookParser {
private boolean isConnectivityError(Exception e) {
Throwable cause = e;
while (cause != null) {
if (e instanceof ConnectException ||
e instanceof UnresolvedAddressException ||
e instanceof SocketTimeoutException) {
if (cause instanceof ConnectException ||
cause instanceof UnresolvedAddressException ||
cause instanceof SocketTimeoutException) {
return true;
}
cause = cause.getCause();