Skip to content

Commit

Permalink
Remove empty LoggingContext (#109)
Browse files Browse the repository at this point in the history
As per the comment on parent repo:
#56 (comment)

Signed-off-by: Adam Hellberg <[email protected]>
  • Loading branch information
Sharparam authored Mar 19, 2024
1 parent f348d3c commit 2c46a76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions s3_storage_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,7 @@ def stopProducing(self):
self.stop_event.set()
self.wakeup_event.set()
if not self.deferred.called:
with LoggingContext():
self.deferred.errback(Exception("Consumer ask to stop producing"))
self.deferred.errback(Exception("Consumer ask to stop producing"))

def _write(self, chunk):
"""Writes the chunk of data to consumer. Called by _S3DownloadThread.
Expand Down

0 comments on commit 2c46a76

Please sign in to comment.