From 709bac58b80a8dc8dbcf17839870eb086d88663d Mon Sep 17 00:00:00 2001 From: "Schimon Jehudah, Adv." Date: Thu, 31 Oct 2024 17:52:12 +0200 Subject: [PATCH] Fix consequent disruption in functionality upon exception TimoutError of AsyncIO consequent to join to an MUC group chat. --- slixfeed/assets/feeds.toml | 6 ++++++ slixfeed/xmpp/muc.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/slixfeed/assets/feeds.toml b/slixfeed/assets/feeds.toml index bb16afa..347e7a9 100644 --- a/slixfeed/assets/feeds.toml +++ b/slixfeed/assets/feeds.toml @@ -208,6 +208,12 @@ name = "her.st - Do you see it yet?" link = "https://her.st/feed.xml" tags = ["lifestyle", "technology", "xmpp", "computer", "code", "llm", "syndication", "minimalism", "linux", "self-hosting", ".net", "go", "python", "philosophy", "psychology", "privacy", "security"] +[[feeds]] +lang = "en" +name = "Hippo (Badri Sunderarajan)" +link = "https://badrihippo.thekambattu.rocks/feed.xml" +tags = ["computer", "mobian", "gerda", "pris", "prav", "kaios", "linux", "phosh", "browser", "telecommunication", "internet", "xmpp"] + [[feeds]] lang = "en" name = "Lagrange Gemini Client" diff --git a/slixfeed/xmpp/muc.py b/slixfeed/xmpp/muc.py index c9a1f9b..6c43226 100644 --- a/slixfeed/xmpp/muc.py +++ b/slixfeed/xmpp/muc.py @@ -16,6 +16,7 @@ FIXME 1) Save name of groupchat instead of jid as name """ +from asyncio import TimeoutError from slixmpp.exceptions import IqError, IqTimeout, PresenceError from slixfeed.log import Logger @@ -68,6 +69,11 @@ class XmppMuc: logger.error(str(e)) logger.error(jid) result = 'timeout' + except TimeoutError as e: + logger.error('Timeout AsyncIO') + logger.error(str(e)) + logger.error(jid) + result = 'timeout' except PresenceError as e: logger.error('Error Presence') logger.error(str(e))