print-debug weird 500 error

pull/142/head
Aevann 2023-03-23 22:19:29 +02:00
parent 3aadb23e00
commit 2805fd2d14
1 changed files with 4 additions and 0 deletions

View File

@ -634,6 +634,10 @@ def complies_with_chud(obj):
soup=BeautifulSoup(old_body_html, 'lxml')
if not soup.html:
print(f'{STARS}{old_body_html}{STARS}', flush=True)
return False
tags = soup.html.body.find_all(lambda tag: tag.name == 'p' and not tag.attrs, recursive=False)
for tag in tags: