diff --git a/defs/feed.py b/defs/feed.py index 5ef4d15..0026578 100644 --- a/defs/feed.py +++ b/defs/feed.py @@ -4,6 +4,7 @@ from datetime import datetime from typing import List, Optional from bs4 import BeautifulSoup +from httpx import RequestError from init import request from defs.glover import rss_hub_host, nitter_host @@ -30,6 +31,8 @@ def retry(func): if i == 2: raise HostNeedChange continue + except RequestError: + continue return wrapper