From 22a983a522fa231903cf0b297b010c69b92f39bf Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 24 Feb 2020 12:03:46 +0100 Subject: [PATCH] Fix 500 for Timeout --- connectors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connectors.py b/connectors.py index 440f449..d65139d 100644 --- a/connectors.py +++ b/connectors.py @@ -10,7 +10,7 @@ from urllib.parse import quote import requests from bs4 import BeautifulSoup -from requests import ReadTimeout +from requests import Timeout from config import IS_DEBUG, CACHE_TIMEOUT, BLACKLIST_WORDS from models import AnimeLink @@ -164,7 +164,7 @@ class Connector(ABC): output = response.text http_code = response.status_code - except ReadTimeout as e: + except Timeout as e: output = '' http_code = 500 if IS_DEBUG: