diff --git a/src/irc_feed.py b/src/irc_feed.py index 3b0e557..b8b6bf8 100644 --- a/src/irc_feed.py +++ b/src/irc_feed.py @@ -84,6 +84,8 @@ class AioIRCCat(irc.client_aio.AioSimpleIRCClient): url = urlparse(post.get('url')) except KeyError: return + if isinstance(url.path, bytes): + return lang = recognize_langs(url.path) full_url = "https://" + url.netloc + lang wiki = self.domain.get_wiki(full_url)