From e41f5eefa702f8aef3e3f7dafafee5653e8c5510 Mon Sep 17 00:00:00 2001 From: m5l14i11 Date: Tue, 10 Sep 2024 17:13:00 +0300 Subject: [PATCH] upd --- core/actors/_base_actor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/actors/_base_actor.py b/core/actors/_base_actor.py index 34b1b672..0ac7e527 100644 --- a/core/actors/_base_actor.py +++ b/core/actors/_base_actor.py @@ -76,7 +76,9 @@ def _discover_events(self): params = sig.parameters.values() if not params: - return [] + raise RuntimeError( + f"{self.on_receive.__name__} method must accept at least one parameter for event handling." + ) event_type = next(iter(params)).annotation