summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-29 14:06:46 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-29 14:06:46 +0200
commita7d2fd070b8b407f944e8114afa4b0feaa73ce4d (patch)
tree494037d5d1191c2116a75e05c84a3345f2b6e615 /module/plugins
parentFix http://forum.pyload.org/viewtopic.php?f=12&t=4421 (diff)
downloadpyload-a7d2fd070b8b407f944e8114afa4b0feaa73ce4d.tar.xz
[MultiHook] Better error handling for plugins_cached
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/internal/MultiHook.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/internal/MultiHook.py b/module/plugins/internal/MultiHook.py
index c49a3c89a..b64ff08c0 100644
--- a/module/plugins/internal/MultiHook.py
+++ b/module/plugins/internal/MultiHook.py
@@ -11,7 +11,7 @@ from module.utils import decode, remove_chars
class MultiHook(Hook):
__name__ = "MultiHook"
__type__ = "hook"
- __version__ = "0.51"
+ __version__ = "0.52"
__status__ = "testing"
__config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
@@ -100,16 +100,16 @@ class MultiHook(Hook):
if self.plugins:
return self.plugins
- for _i in xrange(2):
+ for _i in xrange(5):
try:
pluginset = self._plugin_set(self.get_hosters())
break
except Exception, e:
- self.log_debug(e, "Waiting 1 minute and retry")
+ self.log_warning(e, _("Waiting 1 minute and retry"))
time.sleep(60)
else:
- self.log_warning(_("Fallback to default reload interval due plugin parse error"))
+ self.log_error(_("No hoster list retrieved"))
self.interval = self.MIN_RELOAD_INTERVAL
return list()