From 37fcb4043f6bb3a63f531908b24f81a08d001d1e Mon Sep 17 00:00:00 2001 From: gsd Date: Sun, 19 Mar 2023 11:54:33 +0300 Subject: [PATCH] fix --- src/main/java/app/updates/PreviewUpdater.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/app/updates/PreviewUpdater.java b/src/main/java/app/updates/PreviewUpdater.java index fa5a451..e7eeb86 100644 --- a/src/main/java/app/updates/PreviewUpdater.java +++ b/src/main/java/app/updates/PreviewUpdater.java @@ -76,18 +76,14 @@ public class PreviewUpdater extends BaseUpdater{ logger.info("Request: {}", url); restTemplate.headForHeaders(url); return url; - } catch (RestClientException err) { - logger.warn("Not found: {}, err: {}", url, err); - } + } catch (RestClientException err) {} //Check txt contained url url = preview.formatted(domain, map, "url"); try { logger.info("Request: {}", url); return restTemplate.getForEntity(url, String.class).getBody().replace("\n", ""); - } catch (RestClientException err) { - logger.warn("Not found: {}, err: {}", url, err); - } + } catch (RestClientException err) {} return null; }