From 08abe54e7984820c1be21abde339d8e4f4ab3969 Mon Sep 17 00:00:00 2001 From: David Lynch Date: Sun, 6 Mar 2022 10:46:13 -0600 Subject: [PATCH] Switch out use of :=, forgot I wasn't requiring 3.8 yet --- sites/xenforo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sites/xenforo.py b/sites/xenforo.py index 09790f4..cf1f865 100644 --- a/sites/xenforo.py +++ b/sites/xenforo.py @@ -86,8 +86,9 @@ class XenForo(Site): reader_url = False if reader_url: - if m := re.search(r'\d+/(\d+)/reader', reader_url): - cat = int(m.group(1)) + match = re.search(r'\d+/(\d+)/reader', reader_url) + if match: + cat = int(match.group(1)) if cat != 1 and cat in threadmark_categories: story.title = f'{story.title} ({threadmark_categories[cat]})' idx = 0