Skip to content

Commit

Permalink
Ignore StreamLostErrors during consumer shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jan 2, 2025
1 parent 89c0e26 commit 3896d64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neon_mq_connector/consumers/blocking_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ def run(self):
if self._is_consumer_alive:
self._close_connection()
self.error_func(self, e)
except pika.exceptions.StreamLostError as e:
if self._is_consumer_alive:
self.error_func(self, e)
except Exception as e:
if self._is_consumer_alive:
self._close_connection()
Expand Down

0 comments on commit 3896d64

Please sign in to comment.