Fix 500 for Timeout
This commit is contained in:
parent
df3c72ea92
commit
22a983a522
@ -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:
|
||||
|
Reference in New Issue
Block a user