mirror of
https://github.com/leoncvlt/loconotion.git
synced 2024-08-30 18:12:12 +00:00
Fixed crash when parsing <a> tags without href
This commit is contained in:
parent
3f6715a3b4
commit
c6d67ef0eb
@ -566,7 +566,7 @@ class Parser:
|
||||
|
||||
# find sub-pages and clean slugs / links
|
||||
sub_pages = []
|
||||
for a in soup.findAll("a"):
|
||||
for a in soup.find_all('a', href=True):
|
||||
sub_page_href = a["href"]
|
||||
if sub_page_href.startswith("/"):
|
||||
sub_page_href = "https://www.notion.so" + a["href"]
|
||||
|
Loading…
Reference in New Issue
Block a user