Skip to main content

ListenerStopped

exception Kurimod.exceptions.ListenerStopped

The ListenerStopped exception is raised in Kurimod when a listener is explicitly stopped ( using Client.stop_listening) during bot execution. This exception is used to indicate that a specific listener was intentionally terminated and will only be raised if the throw_exceptions setting in the Kurimod config is set to True.

Usage

from Kurimod.exceptions import ListenerStopped

try:
message = await Client.listen(...)
except ListenerStopped:
print("Listener was stopped")