Skip to content

Commit 919c26c

Browse files
committed
Black
1 parent 11bcb99 commit 919c26c

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

rustplus/remote/websocket/ws.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ async def handle_message(self, app_message: AppMessage) -> None:
187187
event: YieldingEvent = self.responses.get(app_message.response.seq, None)
188188
if event is not None:
189189
if self.debug:
190-
self.logger.info(f"Running Response Event With Error: {app_message}")
190+
self.logger.info(
191+
f"Running Response Event With Error: {app_message}"
192+
)
191193

192194
event.set_with_value(app_message)
193195
else:

rustplus/rust_api.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,9 @@ async def get_map_info(self) -> Union[RustMap, RustError]:
388388

389389
return RustMap(response.response.map)
390390

391-
async def get_entity_info(self, eid: int = None) -> Union[RustEntityInfo, RustError]:
391+
async def get_entity_info(
392+
self, eid: int = None
393+
) -> Union[RustEntityInfo, RustError]:
392394
"""
393395
Gets entity info from the server
394396
@@ -456,7 +458,9 @@ async def check_subscription_to_entity(self, eid: int) -> Union[bool, RustError]
456458
return RustError("check_subscription_to_entity", "misc")
457459

458460
if error_present(response):
459-
return RustError("check_subscription_to_entity", response.response.error.error)
461+
return RustError(
462+
"check_subscription_to_entity", response.response.error.error
463+
)
460464

461465
return response.response.flag.value
462466

rustplus/structs/rust_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ def reason(self) -> str:
1616
return self._reason
1717

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

0 commit comments

Comments
 (0)