Преглед изворни кода

Catch SSL/TLS errors

master
JustAnotherArchivist пре 3 година
родитељ
комит
0619ff40db
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      irclog.py

+ 1
- 1
irclog.py Прегледај датотеку

@@ -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():


Loading…
Откажи
Сачувај