From d0771a58040a3cd21755fae4f3fc230d5adfecf7 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 3 May 2020 20:10:21 +0530 Subject: [PATCH] Fix #445 #452 --- buku | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buku b/buku index a175499..497a8ae 100755 --- a/buku +++ b/buku @@ -42,7 +42,7 @@ import webbrowser import certifi import urllib3 from urllib3.exceptions import LocationParseError -from urllib3.util import parse_url, make_headers +from urllib3.util import parse_url, make_headers, Retry from bs4 import BeautifulSoup # note catch ModuleNotFoundError instead Exception # when python3.5 not supported @@ -3591,7 +3591,7 @@ def network_handler( manager = get_PoolManager() while True: - resp = manager.request(method, url) + resp = manager.request(method, url, retries=urllib3.util.Retry(redirect=10)) if resp.status == 200: if method == 'GET':