Slixfeed/slixfeed/xmpp/iq.py

18 lines
423 B
Python
Raw Normal View History

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
2024-03-24 09:14:20 +01:00
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:
2024-03-24 09:14:20 +01:00
logging.error('Error XmppIQ')
logging.error(str(e))