We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1347496 commit 8b8bea6Copy full SHA for 8b8bea6
html2notion/translate/html2json_base.py
@@ -469,8 +469,10 @@ def convert_table(self, soup):
469
# Can't use this way like: background-image: url('data:image/png;base64...')
470
@staticmethod
471
def get_tag_style(tag_soup):
472
- style = tag_soup.get('style', "")
473
styles = {}
+ if not isinstance(tag_soup, Tag):
474
+ return styles
475
+ style = tag_soup.get('style', "")
476
if str and isinstance(style, str):
477
# style = ''.join(style.split())
478
styles = {
0 commit comments