From f2c55072eff8238b77bdcbf3d15a56be0a963609 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 16 Nov 2011 17:24:20 +0100 Subject: fix deprecation warning --- module/PluginThread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module') diff --git a/module/PluginThread.py b/module/PluginThread.py index c4bdd59c8..56c36c778 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -459,7 +459,7 @@ class HookThread(PluginThread): self.f(*self.args, **self.kwargs) except TypeError, e: #dirty method to filter out exceptions - if "unexpected keyword argument 'thread'" not in e.message: + if "unexpected keyword argument 'thread'" not in e.args[0]: raise del self.kwargs["thread"] -- cgit v1.2.3