소스 검색

Catch connection resets and other connection errors

master
JustAnotherArchivist 3 년 전
부모
커밋
7e29977e40
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      irclog.py

+ 1
- 1
irclog.py 파일 보기

@@ -733,7 +733,7 @@ class IRCClient:
pass
self._transport = None
self._protocol = None
except (ConnectionRefusedError, ssl.SSLError, asyncio.TimeoutError, asyncio.CancelledError) as e:
except (ConnectionError, ssl.SSLError, asyncio.TimeoutError, asyncio.CancelledError) as e:
self.logger.error(f'{type(e).__module__}.{type(e).__name__}: {e!s}')
await wait_cancel_pending({asyncio.create_task(sigintEvent.wait())}, timeout = 5)
if sigintEvent.is_set():


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