fix issue 45

This commit is contained in:
qiyuan
2018-02-28 11:13:57 +08:00
parent 44e86f34d0
commit 4e87dc2c2d
+1 -1
View File
@@ -154,7 +154,7 @@ class BaseParser:
try:
href = link.attrs['href'].strip()
if not href.startswith('#') and self.skip_anchors and href not in ['javascript:;']:
if not(href.startswith('#') and self.skip_anchors) and href not in ['javascript:;']:
if href:
yield href
except KeyError: