summaryrefslogtreecommitdiff
path: root/poezio/poezio.py
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2022-04-04 21:53:34 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2022-04-06 10:41:04 +0200
commit1338fcf9b9dc89890127b5d20e43726c56d9b579 (patch)
treedf6ea5171451146cc04b7311f9e3369a01dc9ca7 /poezio/poezio.py
parent12af2c5e47893c190926c13d83c6bfc6972390f6 (diff)
downloadpoezio-1338fcf9b9dc89890127b5d20e43726c56d9b579.tar.gz
poezio-1338fcf9b9dc89890127b5d20e43726c56d9b579.tar.bz2
poezio-1338fcf9b9dc89890127b5d20e43726c56d9b579.tar.xz
poezio-1338fcf9b9dc89890127b5d20e43726c56d9b579.zip
core: Log InvalidCABundle error in info buffer
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'poezio/poezio.py')
-rw-r--r--poezio/poezio.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/poezio/poezio.py b/poezio/poezio.py
index 21c9e9e3..b149abd4 100644
--- a/poezio/poezio.py
+++ b/poezio/poezio.py
@@ -115,17 +115,12 @@ def main():
from slixmpp.exceptions import IqError, IqTimeout
- def swallow_iqerrors(loop, context):
- """Do not log unhandled iq errors and timeouts"""
- if not isinstance(context['exception'], (IqError, IqTimeout)):
- loop.default_exception_handler(context)
-
# Warning: asyncio must always be imported after the config. Otherwise
# the asyncio logger will not follow our configuration and won't write
# the tracebacks in the correct file, etc
import asyncio
loop = asyncio.get_event_loop()
- loop.set_exception_handler(swallow_iqerrors)
+ loop.set_exception_handler(cocore.loop_exception_handler)
loop.add_reader(sys.stdin, cocore.on_input_readable)
loop.add_signal_handler(signal.SIGWINCH, cocore.sigwinch_handler)