From d018be872a366bdaa1feddb5460fb30880af27e1 Mon Sep 17 00:00:00 2001 From: enkore Date: Mon, 1 Feb 2016 12:18:03 +0100 Subject: [PATCH] Lift restriction that "run" cannot be used as a callback --- i3pystatus/core/modules.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/i3pystatus/core/modules.py b/i3pystatus/core/modules.py index fe45190..e5982e7 100644 --- a/i3pystatus/core/modules.py +++ b/i3pystatus/core/modules.py @@ -101,9 +101,8 @@ class Module(SettingsBase): elif our_method: cb(self, *args) elif hasattr(self, cb): - if cb is not "run": - self.__log_button_event(button, cb, args, "Member callback") - getattr(self, cb)(*args) + self.__log_button_event(button, cb, args, "Member callback") + getattr(self, cb)(*args) else: self.__log_button_event(button, cb, args, "External command") if hasattr(self, "data"):