diff options
author | techchud <protrude_paying969@simplelogin.com> | 2025-08-17 19:55:26 -0500 |
---|---|---|
committer | techchud <protrude_paying969@simplelogin.com> | 2025-08-17 19:55:26 -0500 |
commit | bd82f59cb2ab25a8ff83f41b0d361af5d3a5f2de (patch) | |
tree | fcf3c7587103e927dfe5c6bb321ff672885ff724 | |
parent | 3fad27b8d1c2e6cb496f05a1f769662048b5a22a (diff) | |
download | dilbertRss-bd82f59cb2ab25a8ff83f41b0d361af5d3a5f2de.tar.gz dilbertRss-bd82f59cb2ab25a8ff83f41b0d361af5d3a5f2de.tar.bz2 dilbertRss-bd82f59cb2ab25a8ff83f41b0d361af5d3a5f2de.zip |
main.py is now more reasonable with retries
-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) |