Skip to content

Commit 66c1fe0

Browse files
committed
Applying review comments
1 parent 51d24ba commit 66c1fe0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

redis/maintenance_events.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class MaintenanceState(enum.Enum):
1212
NONE = "none"
1313
MOVING = "moving"
1414
MAINTENANCE = "maintenance"
15-
FAILING_OVER = "failing_over"
1615

1716

1817
if TYPE_CHECKING:
@@ -573,7 +572,7 @@ def __init__(
573572

574573
def handle_event(self, event: MaintenanceEvent):
575574
# get the event type by checking its class in the _EVENT_TYPES dict
576-
event_type = self._EVENT_TYPES.get(event.__class__)
575+
event_type = self._EVENT_TYPES.get(event.__class__, None)
577576

578577
if event_type is None:
579578
logging.error(f"Unhandled event type: {event}")

0 commit comments

Comments
 (0)