Merge "Stop explicitly handling StopIteration in proxy-logging"

This commit is contained in:
Zuul
2020-12-10 21:47:55 +00:00
committed by Gerrit Code Review

View File

@@ -413,8 +413,6 @@ class ProxyLoggingMiddleware(object):
for chunk in iterator:
bytes_sent += len(chunk)
yield chunk
except StopIteration: # iterator was depleted
return
except GeneratorExit: # generator was closed before we finished
client_disconnect = True
raise