File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 75
75
from .poll import Poll
76
76
from .soundboard import SoundboardSound
77
77
from .ui .item import Item , ViewItem
78
- from .ui .modal import BaseModal
79
78
from .voice_client import VoiceProtocol
80
79
81
80
__all__ = ("Client" ,)
@@ -574,7 +573,7 @@ async def on_view_error(
574
573
)
575
574
576
575
async def on_modal_error (
577
- self , error : Exception , modal : BaseModal , interaction : Interaction
576
+ self , error : Exception , interaction : Interaction
578
577
) -> None :
579
578
"""|coro|
580
579
@@ -587,13 +586,11 @@ async def on_modal_error(
587
586
----------
588
587
error: :class:`Exception`
589
588
The exception that was raised.
590
- modal: :class:`BaseModal`
591
- The modal that failed the dispatch.
592
589
interaction: :class:`Interaction`
593
590
The interaction that was received.
594
591
"""
595
592
596
- print (f"Ignoring exception in modal { modal } :" , file = sys .stderr )
593
+ print (f"Ignoring exception in modal { interaction . modal } :" , file = sys .stderr )
597
594
traceback .print_exception (
598
595
error .__class__ , error , error .__traceback__ , file = sys .stderr
599
596
)
You can’t perform that action at this time.
0 commit comments