File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -579,9 +579,7 @@ def is_finished(self) -> bool:
579
579
return self .__stopped .done ()
580
580
581
581
def is_dispatchable (self ) -> bool :
582
- return any (
583
- item .is_dispatchable () for item in self .children
584
- )
582
+ return any (item .is_dispatchable () for item in self .children )
585
583
586
584
def is_dispatching (self ) -> bool :
587
585
"""Whether the view has been added for dispatching purposes."""
Original file line number Diff line number Diff line change @@ -1791,7 +1791,11 @@ async def send(
1791
1791
with_components = False
1792
1792
1793
1793
if view is not MISSING :
1794
- if isinstance (self ._state , _WebhookState ) and view and view .is_dispatchable ():
1794
+ if (
1795
+ isinstance (self ._state , _WebhookState )
1796
+ and view
1797
+ and view .is_dispatchable ()
1798
+ ):
1795
1799
raise InvalidArgument (
1796
1800
"Dispatchable Webhook views require an associated state with the webhook"
1797
1801
)
You can’t perform that action at this time.
0 commit comments