diff --git a/rustplus/remote/websocket/ws.py b/rustplus/remote/websocket/ws.py index fce0ebc..fc128b0 100644 --- a/rustplus/remote/websocket/ws.py +++ b/rustplus/remote/websocket/ws.py @@ -187,7 +187,9 @@ async def handle_message(self, app_message: AppMessage) -> None: event: YieldingEvent = self.responses.get(app_message.response.seq, None) if event is not None: if self.debug: - self.logger.info(f"Running Response Event With Error: {app_message}") + self.logger.info( + f"Running Response Event With Error: {app_message}" + ) event.set_with_value(app_message) else: diff --git a/rustplus/rust_api.py b/rustplus/rust_api.py index 693e624..74cf670 100644 --- a/rustplus/rust_api.py +++ b/rustplus/rust_api.py @@ -388,7 +388,9 @@ async def get_map_info(self) -> Union[RustMap, RustError]: return RustMap(response.response.map) - async def get_entity_info(self, eid: int = None) -> Union[RustEntityInfo, RustError]: + async def get_entity_info( + self, eid: int = None + ) -> Union[RustEntityInfo, RustError]: """ Gets entity info from the server @@ -456,7 +458,9 @@ async def check_subscription_to_entity(self, eid: int) -> Union[bool, RustError] return RustError("check_subscription_to_entity", "misc") if error_present(response): - return RustError("check_subscription_to_entity", response.response.error.error) + return RustError( + "check_subscription_to_entity", response.response.error.error + ) return response.response.flag.value diff --git a/rustplus/structs/rust_error.py b/rustplus/structs/rust_error.py index 5911a5d..ea340a8 100644 --- a/rustplus/structs/rust_error.py +++ b/rustplus/structs/rust_error.py @@ -16,4 +16,4 @@ def reason(self) -> str: return self._reason def __str__(self) -> str: - return f"Error Propagating from {self._method}: {self._reason}" \ No newline at end of file + return f"Error Propagating from {self._method}: {self._reason}"