From 2f4d7d614171054c3c2b0b6185fa4ea465f5312f Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 4 Nov 2014 01:09:43 +0100 Subject: Use more print_exc + code cosmetics --- module/plugins/Plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'module/plugins/Plugin.py') diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index 91bf3aab9..bf051a33f 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -306,7 +306,8 @@ class Plugin(Base): while self.pyfile.waitUntil > time(): self.thread.m.reconnecting.wait(2) - if self.pyfile.abort: raise Abort + if self.pyfile.abort: + raise Abort if self.thread.m.reconnecting.isSet(): self.waiting = False self.wantReconnect = False @@ -329,8 +330,6 @@ class Plugin(Base): msg += ": " + reason.strip() if reason else "" msg += _(" | Plugin may be out of date") - if self.core.debug: - print_exc() raise Fail(msg) -- cgit v1.2.3