From bdd532060a364d701ed02401fa12cfd2ff42a76c Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Thu, 29 Sep 2022 17:32:35 -0500 Subject: [PATCH] Dgata arg check --- .../solarfm-0.0.1/SolarFM/solarfm/utils/event_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/versions/solarfm-0.0.1/SolarFM/solarfm/utils/event_system.py b/src/versions/solarfm-0.0.1/SolarFM/solarfm/utils/event_system.py index 53aa64e..10b2765 100644 --- a/src/versions/solarfm-0.0.1/SolarFM/solarfm/utils/event_system.py +++ b/src/versions/solarfm-0.0.1/SolarFM/solarfm/utils/event_system.py @@ -22,7 +22,7 @@ class EventSystem: if event_type in self.subscribers: for fn in self.subscribers[event_type]: if data: - if hasattr(data, '__iter__'): + if hasattr(data, '__iter__') and not type(data) is str: fn(*data) else: fn(data)