Skip to content

Commit a373bcf

Browse files
committed
Handle no page property table found
1 parent 78ff5a6 commit a373bcf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

confluence_markdown_exporter/confluence.py

+2
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ def convert_page_properties_report(
761761
return ""
762762
soup = BeautifulSoup(self.page.body_export, "html.parser")
763763
table = soup.find("table", {"data-cql": data_cql})
764+
if not table:
765+
return ""
764766
return super().convert_table(table, "", parent_tags) # type: ignore -
765767

766768

0 commit comments

Comments
 (0)