From 68d11b2f81688c4742c2cde5f4bf0ce6baf2e89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Mand=C3=A1k?= Date: Fri, 25 Sep 2015 19:37:53 +0200 Subject: [PATCH] Module: Log first then let bad things happen. :) --- i3pystatus/core/modules.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/i3pystatus/core/modules.py b/i3pystatus/core/modules.py index d1fa235..c9eaa98 100644 --- a/i3pystatus/core/modules.py +++ b/i3pystatus/core/modules.py @@ -106,15 +106,15 @@ class Module(SettingsBase): cb, args = split_callback_and_args(cb) if callable(cb): - cb(self, *args) log_event(self.__name__, button, cb, args, "Python callback") + cb(self, *args) elif hasattr(self, cb): if cb is not "run": - getattr(self, cb)(*args) log_event(self.__name__, button, cb, args, "Member callback") + getattr(self, cb)(*args) else: - execute(cb, detach=True) log_event(self.__name__, button, cb, args, "External command") + execute(cb, detach=True) return True def move(self, position):