increased server event handler type flexibility
This commit is contained in:
parent
f540f1e7c4
commit
41ea40fc35
|
@ -163,7 +163,7 @@ def trigger_events(events, loop):
|
||||||
:param loop: event loop
|
:param loop: event loop
|
||||||
"""
|
"""
|
||||||
if events:
|
if events:
|
||||||
if type(events) is not list:
|
if not isinstance(events, list):
|
||||||
events = [events]
|
events = [events]
|
||||||
for event in events:
|
for event in events:
|
||||||
result = event(loop)
|
result = event(loop)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user