From efdd172e823cfc59d33c7acf30510cf05c2791fb Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 13 Oct 2011 15:42:44 +0200 Subject: fixes syntax error on old python versions --- module/PluginThread.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'module/PluginThread.py') diff --git a/module/PluginThread.py b/module/PluginThread.py index d29d609c7..aeb2ac2aa 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -454,8 +454,10 @@ class HookThread(PluginThread): def run(self): try: try: - self.f(*self.args, thread=self, **self.kwargs) + self.kwargs["thread"] = self + self.f(*self.args, **self.kwargs) except TypeError: + del self.kwargs["thread"] self.f(*self.args, **self.kwargs) finally: local = copy(self.active) -- cgit v1.2.3