2024-03-12 18:13:01 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2024-03-24 09:14:20 +01:00
|
|
|
import logging
|
|
|
|
from slixmpp.exceptions import IqError, IqTimeout
|
2024-03-12 18:13:01 +01:00
|
|
|
|
|
|
|
class XmppIQ:
|
|
|
|
|
|
|
|
async def send(self, iq):
|
|
|
|
try:
|
|
|
|
await iq.send(timeout=5)
|
2024-03-24 09:14:20 +01:00
|
|
|
except (IqError, IqTimeout) as e:
|
|
|
|
logging.error('Error XmppIQ')
|
|
|
|
logging.error(str(e))
|