Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,11 +801,9 @@ def describe_events(health_client):
)
event_details = json.loads(event_details)
print("Event Details: ", event_details)
if event_details["successfulSet"] == []:
if not event_details["successfulSet"]:
print(
"An error occured with account:",
event_details["failedSet"][0]["awsAccountId"],
"due to:",
"An error occurred due to:",
event_details["failedSet"][0]["errorName"],
":",
event_details["failedSet"][0]["errorMessage"],
Expand Down Expand Up @@ -908,9 +906,9 @@ def describe_org_events(health_client):
)
event_details = json.loads(event_details)
print("Event Details: ", event_details)
if event_details["successfulSet"] == []:
if not event_details["successfulSet"]:
print(
"An error occured with account:",
"An error occurred with account:",
event_details["failedSet"][0]["awsAccountId"],
"due to:",
event_details["failedSet"][0]["errorName"],
Expand Down