Skip to main content

ListenerTimeout

exception Kurimod.exceptions.ListenerTimeout

The ListenerTimeout exception in Kurimod is raised when a listener waits for a specified duration but times out without receiving the expected event. It is thrown only if the config.throw_exceptions attribute is set to True.

Usage

from Kurimod.exceptions import ListenerTimeout

try:
message = await Client.listen(..., timeout=10)
except ListenerTimeout:
print("Listener timed out")