Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb15 committed Apr 2, 2020
1 parent 6838870 commit da6b31f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ahealthchecks.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def create_check(check_name: str, creation_params: dict = {}):
channel_name = channel["name"].lower()
if channel_name in channels_by_name:
raise ValueError(
f"Ahealthchannel requires all channel names to be unique for identifcation purposes. \
f"healthchecks-manager requires all channel names to be unique for identifcation purposes. \
{channel}\n\nis a duplicate of channel with id {channels_by_name[channel_name]}"
)
channels_by_name[channel_name] = channel["id"]
Expand Down Expand Up @@ -69,7 +69,7 @@ def get_endpoint(check_name: str, creation_params: dict = {}):
# todo: only raise error if duplicate check_name
# we don't want everything to fail if there is a single duplicate
raise ValueError(
f"Ahealthcheck requires all check names to be unique for identifcation purposes. \
f"healthchecks-manager requires all check names to be unique for identifcation purposes. \
{check}\n\nis a duplicate of check with ping_url {checks_by_name[existing_check_name]}"
)
checks_by_name[existing_check_name] = check["ping_url"]
Expand Down

0 comments on commit da6b31f

Please sign in to comment.