aiohttp should not depend on requests (#19808)
This commit is contained in:
Родитель
77918e8178
Коммит
f0f09cf5c2
|
@ -36,7 +36,6 @@ import asyncio
|
|||
import codecs
|
||||
import aiohttp
|
||||
from multidict import CIMultiDict
|
||||
from requests.exceptions import StreamConsumedError
|
||||
|
||||
from azure.core.configuration import ConnectionConfiguration
|
||||
from azure.core.exceptions import ServiceRequestError, ServiceResponseError
|
||||
|
@ -249,8 +248,6 @@ class AioHttpStreamDownloadGenerator(AsyncIterator):
|
|||
except _ResponseStopIteration:
|
||||
internal_response.close()
|
||||
raise StopAsyncIteration()
|
||||
except StreamConsumedError:
|
||||
raise
|
||||
except Exception as err:
|
||||
_LOGGER.warning("Unable to stream download: %s", err)
|
||||
internal_response.close()
|
||||
|
|
Загрузка…
Ссылка в новой задаче