nibrag/aiosocks

TypeError when raise aiohttp.ClientProxyConnectionError

Closed this issue · 1 comments

aiohttp: 2.3.2
aiosocks: 0.2.4

in connector.py:108

raise aiohttp.ClientProxyConnectionError(*exc.args)

throw

TypeError: __init__() missing 1 required positional argument: 'os_error'

because aiohttp.ClientProxyConnectionError, which inherited from aiohttp.ClientConnectorError,
has constructor:

    def __init__(self, connection_key, os_error):
        self._conn_key = connection_key
        self._os_error = os_error
        super().__init__(os_error.errno, os_error.strerror)

fixed