From 0d8f54202ff1ea1cc9bdfe112d29ddc0c34d0f91 Mon Sep 17 00:00:00 2001 From: Ayaz Abbas Date: Wed, 12 Jun 2024 15:54:36 +0100 Subject: [PATCH] linting --- pyth_observer/dispatch.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyth_observer/dispatch.py b/pyth_observer/dispatch.py index 9f1172b..6338bd4 100644 --- a/pyth_observer/dispatch.py +++ b/pyth_observer/dispatch.py @@ -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 @@ -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 )