64727d207f
Add more classes and modules; Restore database maintenance; Remove JSON support; Remove Beautiful Soup.
19 lines
463 B
Python
19 lines
463 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from slixfeed.log import Logger
|
|
from slixmpp.exceptions import IqError, IqTimeout
|
|
|
|
logger = Logger(__name__)
|
|
|
|
class XmppIQ:
|
|
|
|
async def send(self, iq):
|
|
try:
|
|
await iq.send(timeout=15)
|
|
except IqTimeout as e:
|
|
logger.error('Error Timeout')
|
|
logger.error(str(e))
|
|
except IqError as e:
|
|
logger.error('Error XmppIQ')
|
|
logger.error(str(e))
|