remotes/1693045480750635534/spooky-22
Aevann1 2021-11-27 20:24:32 +02:00
parent 71ca775ac5
commit c0055d026a
1 changed files with 2 additions and 1 deletions

View File

@ -392,7 +392,8 @@ def get_post_title(v):
url = request.values.get("url", None)
if not url: abort(400)
x = requests.get(url, headers=titleheaders, timeout=5)
try: x = requests.get(url, headers=titleheaders, timeout=5)
except: abort(400)
soup = BeautifulSoup(x.content, 'html.parser')