import ssl
import asyncio
import aiohttp


async def get(session, url):
    """Wrapper for session.get() that returns None if the HTTP GET call failed.

    Args:
        session:
        url:

    Returns:
        2-tup
            status_code: int
            body_str: str
    """
    try:
        async with session.get(url, ssl=False) as response:
            return response.status, await response.text()
    except (
        ssl.SSLError,
        asyncio.TimeoutError,
        ConnectionError,
        aiohttp.ClientConnectorError,
    ):
        return None, None