summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-03-07 21:20:12 +0100
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-03-07 21:20:12 +0100
commited91dde1c52851bbfd1168620328b7809a3623f8 (patch)
tree8664b887439ae98adc317d3b8417a8e58edbe63c /module
parent[XMPP] Update (diff)
downloadpyload-ed91dde1c52851bbfd1168620328b7809a3623f8.tar.xz
[UpdateManager] issue #2377
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hooks/UpdateManager.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py
index 181d89e76..7fadb59b2 100644
--- a/module/plugins/hooks/UpdateManager.py
+++ b/module/plugins/hooks/UpdateManager.py
@@ -15,7 +15,7 @@ from module.plugins.internal.misc import encode, exists, Expose, fsjoin, threade
class UpdateManager(Addon):
__name__ = "UpdateManager"
__type__ = "hook"
- __version__ = "1.10"
+ __version__ = "1.11"
__status__ = "testing"
__config__ = [("activated" , "bool", "Activated" , True ),
@@ -283,7 +283,12 @@ class UpdateManager(Addon):
plugins = getattr(self.pyload.pluginManager, "%sPlugins" % plugin_type.rstrip('s')) #@TODO: Remove rstrip in 0.4.10
oldver = float(plugins[plugin_name]['v']) if plugin_name in plugins else None
- newver = float(plugin_version)
+ try:
+ newver = float(plugin_version)
+ except ValueError:
+ self.log_error(_("Error updating plugin: %s %s") % (plugin_type.rstrip('s').upper(), plugin_name),
+ _("Bad version number on the server"))
+ continue
if not oldver:
msg = "New plugin: %(type)s %(name)s (v%(newver).2f)"