Fix consequent disruption in functionality upon exception
TimoutError of AsyncIO consequent to join to an MUC group chat.
This commit is contained in:
parent
263382ba8d
commit
709bac58b8
2 changed files with 12 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue