Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
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
Expand Down Expand Up @@ -247,8 +246,6 @@ async def __anext__(self):
except _ResponseStopIteration:
internal_response.close()
raise StopAsyncIteration()
except StreamConsumedError:
raise
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be replaced by anything?
....probably not because we were just reraising it, and a requests error never would have been raised by aiohttp anyway.... did aiohttp have an equivalent need to handle?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replacing (if needed) would be a potential breaking change. For this PR, I want to fix the for-sure bad code to unblock the work to cut dependency on requests library. Does this make sense?

except Exception as err:
_LOGGER.warning("Unable to stream download: %s", err)
internal_response.close()
Expand Down