Przeglądaj źródła

Catch SSL/TLS errors

master
JustAnotherArchivist 3 lat temu
rodzic
commit
0619ff40db
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      irclog.py

+ 1
- 1
irclog.py Wyświetl plik

@@ -442,7 +442,7 @@ class IRCClient:
finally:
if not connectionClosedEvent.is_set():
await self._protocol.quit()
except (ConnectionRefusedError, asyncio.TimeoutError) as e:
except (ConnectionRefusedError, ssl.SSLError, asyncio.TimeoutError) as e:
self.logger.error(str(e))
await asyncio.wait((asyncio.sleep(5), sigintEvent.wait()), return_when = asyncio.FIRST_COMPLETED)
if sigintEvent.is_set():


Ładowanie…
Anuluj
Zapisz