Fix 'CachedResponse has no len()' error

master
PrismaticYT 2021-07-10 11:17:04 +12:00 committed by GitHub
parent c030fded0b
commit 3b19807efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -146,9 +146,7 @@ def soupify(res):
-------
BeautifulSoup.Soup
"""
if isinstance(res, requests.Response):
res = res.text
soup = BeautifulSoup(res, 'html.parser')
soup = BeautifulSoup(res.text, 'html.parser')
return soup