Skip to content

Commit 437e811

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 4b8114c commit 437e811

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

discord/interactions.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,9 @@ async def original_response(self) -> InteractionMessage:
477477
# TODO: fix later to not raise?
478478
channel = self.channel
479479
if channel is None:
480-
raise ClientException("Channel for message could not be resolved. Please open a issue on GitHub if you encounter this error.")
480+
raise ClientException(
481+
"Channel for message could not be resolved. Please open a issue on GitHub if you encounter this error."
482+
)
481483

482484
adapter = async_context.get()
483485
http = self._state.http
@@ -928,7 +930,9 @@ async def _process_callback_response(
928930
# TODO: fix later to not raise?
929931
channel = self._parent.channel
930932
if channel is None:
931-
raise ClientException("Channel for message could not be resolved. Please open a issue on GitHub if you encounter this error.")
933+
raise ClientException(
934+
"Channel for message could not be resolved. Please open a issue on GitHub if you encounter this error."
935+
)
932936
state = _InteractionMessageState(self._parent, self._parent._state)
933937
message = InteractionMessage(state=state, channel=channel, data=callback_response["resource"]["message"]) # type: ignore
934938
self._parent._original_response = message

0 commit comments

Comments
 (0)