Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ayazabbas committed Jun 12, 2024
1 parent 69c35df commit 0d8f542
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyth_observer/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def run(self, states: List[State]):
"failures": 1,
"last_window_failures": None,
"sent": False,
"event_type": event_type
"event_type": event_type,
}
else:
alert["failures"] += 1
Expand Down Expand Up @@ -188,7 +188,10 @@ async def process_zenduty_events(self, current_time):
):
logger.debug(f"Resolving Zenduty alert {identifier}")
resolved = True
if info["sent"] and info.get("event_type", "ZendutyEvent") == "ZendutyEvent":
if (
info["sent"]
and info.get("event_type", "ZendutyEvent") == "ZendutyEvent"
):
response = await send_zenduty_alert(
identifier, identifier, resolved=True
)
Expand Down

0 comments on commit 0d8f542

Please sign in to comment.