ssl/asyncio: traceback even when error is handled
Trying to download and process jpegs from URLs. My issue isn't that certificate verification fails for some URLs, as these URLs are old and may no longer be trustworthy, but that when I try...except... the SSLCertVerificationError , I still get the traceback. System: Linux 4.17.14-arch1-1-ARCH, python 3.7.0-3, aiohttp 3.3.2 Minimal example: import asyncio import aiohttp from ssl import SSLCertVerificationError async def fetch_url(url, client): try: async with client.get(url) as resp: print(resp.status) print(await resp.read()) except SSLCertVerificationError as e: print('Error handled') async