better error when attempting to add images directly (#1158)

This commit is contained in:
Alex Xu
2025-11-12 15:52:34 -08:00
committed by GitHub
parent 9429bed91c
commit 65007aec07
3 changed files with 10 additions and 3 deletions
+3
View File
@@ -27,6 +27,9 @@ import sys
from traceback import format_tb
IMAGE_TYPES = ('.png', '.jpg', '.jpeg', '.gif', '.webp', '.jp2', '.avif')
class HTMLStripper(HTMLParser):
def __init__(self):
HTMLParser.__init__(self)