소스 검색

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


불러오는 중...
취소
저장