We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51d24ba commit 66c1fe0Copy full SHA for 66c1fe0
redis/maintenance_events.py
@@ -12,7 +12,6 @@ class MaintenanceState(enum.Enum):
12
NONE = "none"
13
MOVING = "moving"
14
MAINTENANCE = "maintenance"
15
- FAILING_OVER = "failing_over"
16
17
18
if TYPE_CHECKING:
@@ -573,7 +572,7 @@ def __init__(
573
572
574
def handle_event(self, event: MaintenanceEvent):
575
# get the event type by checking its class in the _EVENT_TYPES dict
576
- event_type = self._EVENT_TYPES.get(event.__class__)
+ event_type = self._EVENT_TYPES.get(event.__class__, None)
577
578
if event_type is None:
579
logging.error(f"Unhandled event type: {event}")
0 commit comments