From 3d35898f2075e71679da300ea40f3af672e7eb7c Mon Sep 17 00:00:00 2001 From: Berack96 Date: Wed, 22 Oct 2025 13:32:25 +0200 Subject: [PATCH] Copilot noioso --- src/app/api/social/chan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/api/social/chan.py b/src/app/api/social/chan.py index 0f3d767..66efdb0 100644 --- a/src/app/api/social/chan.py +++ b/src/app/api/social/chan.py @@ -2,12 +2,12 @@ import re import html import requests import warnings -from bs4 import BeautifulSoup +from bs4 import BeautifulSoup, MarkupResemblesLocatorWarning from datetime import datetime from app.api.core.social import * # Ignora i warning di BeautifulSoup quando incontra HTML malformato o un link, mentre si aspetta un HTML completo -warnings.filterwarnings("ignore") +warnings.filterwarnings("ignore", category=MarkupResemblesLocatorWarning) class ChanWrapper(SocialWrapper):