better error when attempting to add images directly (#1158)
This commit is contained in:
1 parent
9429bed91c
commit
65007aec07
3 files changed
+10
-3
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user