Skip to content

Commit c3f2274

Browse files
authored
Merge pull request #8086 from DIRACGridBot/cherry-pick-2-63a1ea744-integration
[sweep:integration] fix (MQ): catch ConnectionError upon send
2 parents c89d10d + 4d0271f commit c3f2274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DIRAC/Resources/MessageQueue/StompMQConnector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def put(self, message, parameters=None):
172172
try:
173173
try:
174174
self.connection.send(body=json.dumps(message), destination=destination)
175-
except stomp.exception.StompException:
175+
except (stomp.exception.StompException, ConnectionError):
176176
self.connect()
177177
self.connection.send(body=json.dumps(message), destination=destination)
178178
except Exception as e:

0 commit comments

Comments
 (0)