diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 8fae894a..feb48b28 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -376,7 +376,7 @@ class XMLStream(asyncio.BaseProtocol): def loop(self) -> AbstractEventLoop: if self._loop is None: try: - with warnings.catch_warnings(category=DeprecationWarning): + with warnings.catch_warnings(): warnings.simplefilter("ignore") self._loop = asyncio.get_event_loop() # We do not know what exception will be raised in the future