Removed redundant exception
All checks were successful
Build & Publish to GHCR / build (push) Successful in 1m41s

This commit is contained in:
Florian 2025-11-07 18:07:31 +01:00
parent 52a6015ea0
commit e602963d85

View File

@ -63,7 +63,7 @@ class RabbitMQProducer:
mandatory=True
)
logger.debug(f"[RabbitMQ] Successfully published to notify.user.{routing_key}")
except (AMQPException, ConnectionError, OSError) as e:
except (AMQPException, OSError) as e:
logger.warning(f"[RabbitMQ] Publish failed, requeuing message: {e}", exc_info=True)
await asyncio.sleep(2)
await self._queue.put((routing_key, message))