summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-20 20:13:59 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-20 20:13:59 +0200
commita0cb63ec69c2845339baac47534288349a6d579d (patch)
treed3d5759f204716ab857575117813da465c3b97fe
parentNotifier framework (diff)
downloadpyload-a0cb63ec69c2845339baac47534288349a6d579d.tar.xz
Tiny code cosmetics
-rw-r--r--module/plugins/internal/Account.py2
-rw-r--r--module/plugins/internal/Addon.py2
-rw-r--r--module/plugins/internal/OCR.py2
-rw-r--r--module/plugins/internal/Plugin.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py
index f883eb25c..f55ae90ed 100644
--- a/module/plugins/internal/Account.py
+++ b/module/plugins/internal/Account.py
@@ -88,7 +88,7 @@ class Account(Plugin):
self.periodical()
except Exception, e:
- self.log_error(_("Error executing periodical task: %s") % e, trace=True)
+ self.log_error(_("Error performing periodical task"), e)
self.restart_periodical(threaded=threaded, delay=self.interval)
diff --git a/module/plugins/internal/Addon.py b/module/plugins/internal/Addon.py
index 5f2e53bf0..e6de50aaa 100644
--- a/module/plugins/internal/Addon.py
+++ b/module/plugins/internal/Addon.py
@@ -122,7 +122,7 @@ class Addon(Plugin):
self.periodical()
except Exception, e:
- self.log_error(_("Error executing periodical task: %s") % e, trace=True)
+ self.log_error(_("Error performing periodical task"), e)
self.restart_periodical(threaded=threaded, delay=self.interval)
diff --git a/module/plugins/internal/OCR.py b/module/plugins/internal/OCR.py
index 78ad383ca..c783b816f 100644
--- a/module/plugins/internal/OCR.py
+++ b/module/plugins/internal/OCR.py
@@ -137,7 +137,7 @@ class OCR(Plugin):
os.remove(tmpSub.name)
except OSError, e:
- self.log_warning(e, trace=True)
+ self.log_warning(e)
def recognize(self, name):
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py
index a190c0cb0..9f14855ab 100644
--- a/module/plugins/internal/Plugin.py
+++ b/module/plugins/internal/Plugin.py
@@ -266,7 +266,7 @@ class Plugin(object):
f.write(encode(html))
except IOError, e:
- self.log_error(e, trace=True)
+ self.log_error(e)
finally:
del frame #: Delete the frame or it wont be cleaned