diff options
-rwxr-xr-x | main.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -3,7 +3,6 @@ import requests from requests.adapters import HTTPAdapter from urllib3.util.retry import Retry import bs4 -import time import feedgenerator from datetime import datetime, timedelta from fastapi import FastAPI, Response @@ -24,7 +23,7 @@ async def root(): date = rawDate.strftime('%Y-%m-%d') session = requests.Session() - retry = Retry(connect=3, backoff_factor=0.5) + retry = Retry(connect=10, backoff_factor=0.5) adapter = HTTPAdapter(max_retries=retry) session.mount('http://', adapter) session.mount('https://', adapter) |