Skip to content

Commit

Permalink
Linter limits lines on exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielRN committed Jul 23, 2021
1 parent 291201e commit cc84b34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def detect(self) -> "Resource":
if not os.environ.get(
"ECS_CONTAINER_METADATA_URI"
) and not os.environ.get("ECS_CONTAINER_METADATA_URI_V4"):
raise RuntimeError("Missing ECS_CONTAINER_METADATA_URI therefore process is not on ECS.")
raise RuntimeError(
"Missing ECS_CONTAINER_METADATA_URI therefore process is not on ECS."
)

container_id = ""
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def detect(self) -> "Resource":
container_id = _get_container_id()

if not container_id or not cluster_name:
raise RuntimeError("Neither cluster name nor container ID found on EKS process.")
raise RuntimeError(
"Neither cluster name nor container ID found on EKS process."
)

return Resource(
{
Expand Down

0 comments on commit cc84b34

Please sign in to comment.