increased server event handler type flexibility

This commit is contained in:
Channel Cat 2016-10-23 01:51:46 -07:00
parent f540f1e7c4
commit 41ea40fc35

View File

@ -163,7 +163,7 @@ def trigger_events(events, loop):
:param loop: event loop
"""
if events:
if type(events) is not list:
if not isinstance(events, list):
events = [events]
for event in events:
result = event(loop)