From ad789d61fe5bd5038500b083cd52d44495b74cc1 Mon Sep 17 00:00:00 2001 From: Ollie <69084614+olijeffers0n@users.noreply.github.com> Date: Wed, 7 Aug 2024 21:38:42 +0100 Subject: [PATCH] Update formatting --- rustplus/remote/ratelimiter/__init__.py | 4 +++- rustplus/remote/websocket/ws.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rustplus/remote/ratelimiter/__init__.py b/rustplus/remote/ratelimiter/__init__.py index 370d86a..16bd653 100644 --- a/rustplus/remote/ratelimiter/__init__.py +++ b/rustplus/remote/ratelimiter/__init__.py @@ -28,7 +28,9 @@ def refresh(self) -> None: time_now = time.time() time_delta = time_now - self.last_update self.last_update = time_now - self.current = min(self.current + time_delta * self.refresh_per_second, self.max) + self.current = min( + self.current + time_delta * self.refresh_per_second, self.max + ) class RateLimiter: diff --git a/rustplus/remote/websocket/ws.py b/rustplus/remote/websocket/ws.py index 98dfcb2..1dd6a59 100644 --- a/rustplus/remote/websocket/ws.py +++ b/rustplus/remote/websocket/ws.py @@ -119,7 +119,8 @@ async def run(self) -> None: except Exception as e: self.logger.exception( - "An Error occurred whilst parsing the message from the server: %s", e + "An Error occurred whilst parsing the message from the server: %s", + e, ) continue