Merge Stable Changesto Master #9

Merged
itdominator merged 30 commits from develop into master 2022-11-29 04:58:09 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit bdd532060a - Show all commits

View File

@ -22,7 +22,7 @@ class EventSystem:
if event_type in self.subscribers: if event_type in self.subscribers:
for fn in self.subscribers[event_type]: for fn in self.subscribers[event_type]:
if data: if data:
if hasattr(data, '__iter__'): if hasattr(data, '__iter__') and not type(data) is str:
fn(*data) fn(*data)
else: else:
fn(data) fn(data)