Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Fix for #404 #460

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions asyncio/base_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
from .coroutines import coroutine
from .log import logger

try:
import ssl
except ImportError:
ssl = None


__all__ = ['BaseEventLoop']

Expand All @@ -53,6 +58,8 @@
# methods (_fatal_error())
_FATAL_ERROR_IGNORE = (BrokenPipeError,
ConnectionResetError, ConnectionAbortedError)
if ssl is not None:
_FATAL_ERROR_IGNORE = _FATAL_ERROR_IGNORE + (ssl.CertificateError,)


def _format_handle(handle):
Expand Down