Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
olijeffers0n committed Oct 19, 2024
1 parent 11bcb99 commit 919c26c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion rustplus/remote/websocket/ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 6 additions & 2 deletions rustplus/rust_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion rustplus/structs/rust_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ def reason(self) -> str:
return self._reason

def __str__(self) -> str:
return f"Error Propagating from {self._method}: {self._reason}"
return f"Error Propagating from {self._method}: {self._reason}"

0 comments on commit 919c26c

Please sign in to comment.