From 27b677a44421c098731b4af929b8df9de238ec56 Mon Sep 17 00:00:00 2001 From: David Lynch Date: Sun, 29 Oct 2017 19:50:19 -0500 Subject: [PATCH] Fix no-threadmarks autodetect --- sites/xenforo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sites/xenforo.py b/sites/xenforo.py index cb0e8a1..9c94401 100644 --- a/sites/xenforo.py +++ b/sites/xenforo.py @@ -71,7 +71,10 @@ class XenForo(Site): threadmarks_link = soup.find(class_="threadmarksTrigger", href=True) if not threadmarks_link: - threadmarks_link = soup.select('.threadmarkMenus a.OverlayTrigger')[0] + try: + threadmarks_link = soup.select('.threadmarkMenus a.OverlayTrigger')[0] + except IndexError: + pass if not threadmarks_link: raise SiteException("No threadmarks")