Skip to content

Commit

Permalink
fix: network
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdang committed Jan 14, 2025
1 parent 3ce8c4e commit 0ca97de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion silverback/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,8 @@ def new_bot(
"""Create a new bot in a CLUSTER with the given configuration"""

if name in cluster.bots_by_network(network=network):
raise click.UsageError(f"Bot name {name} already exists in network {network}.")
trim_network = ":".join(network.split(":")[:2])
raise click.UsageError(f"Bot name {name} already exists in network {trim_network}.")

vargroup = [group for group in vargroups]

Expand Down

0 comments on commit 0ca97de

Please sign in to comment.