Slixfeed/slixfeed/xmpp/iq.py
Schimon Jehudah 4ac8e0836d Fix PubSub;
Improve permission handling;
Catch more errors.
2024-05-14 19:39:58 +00:00

17 lines
423 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
from slixmpp.exceptions import IqError, IqTimeout
class XmppIQ:
async def send(self, iq):
try:
await iq.send(timeout=15)
except IqTimeout as e:
logging.error('Error Timeout')
logging.error(str(e))
except IqError as e:
logging.error('Error XmppIQ')
logging.error(str(e))