We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b85d3b4 commit 144da4eCopy full SHA for 144da4e
riak/client/transport.py
@@ -106,6 +106,7 @@ def _stream_with_retry(self, make_op):
106
while True:
107
resource = self._acquire()
108
transport = resource.object
109
+ streaming_op = None
110
try:
111
streaming_op = make_op(transport)
112
streaming_op.attach(resource)
@@ -122,7 +123,8 @@ def _stream_with_retry(self, make_op):
122
123
raise
124
finally:
125
first_try = False
- streaming_op.close()
126
+ if streaming_op:
127
+ streaming_op.close()
128
129
def _with_retries(self, pool, fn):
130
"""
0 commit comments