Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Sep 10, 2024
1 parent 2664e5d commit e41f5ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/actors/_base_actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e41f5ee

Please sign in to comment.