diff --git a/sopel/modules/xkcd.py b/sopel/modules/xkcd.py index 3bf12b313..953c303ee 100644 --- a/sopel/modules/xkcd.py +++ b/sopel/modules/xkcd.py @@ -58,6 +58,7 @@ def web_search(query): match = re.match(r'(?:https?://)?(?:m\.)?xkcd\.com/(\d+)/?', url) if match: return match.group(1) + return None def searchxkcd_search(query):