Skip to content

Commit d3e6276

Browse files
committed
Don't filter Twitter links when checking for broken links
1 parent d303cf4 commit d3e6276

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

check-links.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
status_codes = [pdfx.downloader.get_status_code(ref.ref) for ref in refs]
1212

1313
broken_links = [(ref.ref, code) for ref, code in zip(refs, status_codes) if code != 200]
14-
# It seems that Twitter and stackoverflow do not respond well to the link checker and throws a 400
15-
broken_links = [b for b in broken_links if not ('twitter.com' in b[0] or 'stackoverflow.com' in b[0])]
14+
# It seems that stackoverflow does not respond well to the link checker and throws a 400
15+
broken_links = [b for b in broken_links if not 'stackoverflow.com' in b[0]]
1616

1717
if len(broken_links) == 0:
1818
sys.exit(0)

0 commit comments

Comments
 (0)