Skip to content

Commit

Permalink
fix: amqp broker url
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemDoum committed Nov 21, 2024
1 parent 92e9b1e commit 4abc6db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion icij-worker/icij_worker/utils/amqp.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ class AMQPConfigMixin(ICIJModel):
@cached_property
def broker_url(self) -> str:
amqp_userinfo = self.rabbitmq_user
amqp_userinfo += f":{self.rabbitmq_password}"
if self.rabbitmq_password:
amqp_userinfo += f":{self.rabbitmq_password}"
if amqp_userinfo:
amqp_userinfo += "@"
amqp_authority = (
Expand Down

0 comments on commit 4abc6db

Please sign in to comment.