From 641ac0168b30d96b531f3dc7c85bae5829ab696f Mon Sep 17 00:00:00 2001 From: thegamecracks <61257169+thegamecracks@users.noreply.github.com> Date: Sat, 23 Mar 2024 23:43:31 -0400 Subject: [PATCH] refactor: use elif in AsyncClient._handle_event() --- src/dumdum/client/async_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dumdum/client/async_client.py b/src/dumdum/client/async_client.py index 8ce135a..0203308 100644 --- a/src/dumdum/client/async_client.py +++ b/src/dumdum/client/async_client.py @@ -136,7 +136,7 @@ def _handle_event(self, event: ClientEvent) -> None: if isinstance(event, ClientEventIncompatibleVersion): assert self._writer is not None self._writer.close() - if isinstance(event, ClientEventAuthentication): + elif isinstance(event, ClientEventAuthentication): self._set_authentication(event.success) self._dispatch_event(event)