Skip to content

Commit

Permalink
Add catchall OSError to recoverable exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Sep 14, 2023
1 parent 9b86949 commit 78fa1aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pulsar/client/amqp_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def __init__(
ConnectionResetError, # https://github.com/galaxyproject/pulsar/issues/328
TimeoutError,
socket.timeout,
OSError, # Needed as long as py-ampq raises plain OSError: https://github.com/celery/py-amqp/blob/a92dd037712b5b7b1622f4f9d83157d095c90910/amqp/transport.py#L584
amqp.exceptions.ConnectionForced, # e.g. connection closed on rabbitmq sigterm
amqp.exceptions.RecoverableConnectionError, # connection closed
amqp.exceptions.RecoverableChannelError, # publish time out
Expand Down

0 comments on commit 78fa1aa

Please sign in to comment.