From 30a20e16d25b285b5148cd1e5b518a545f1f7bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 11 Nov 2018 10:21:46 +0100 Subject: [PATCH] Enforce min and max version for plugin manifest This reduces problems with old plugins without max version --- gajim/plugins/pluginmanager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gajim/plugins/pluginmanager.py b/gajim/plugins/pluginmanager.py index 39edde419..87a25b45e 100644 --- a/gajim/plugins/pluginmanager.py +++ b/gajim/plugins/pluginmanager.py @@ -650,6 +650,10 @@ class PluginManager(metaclass=Singleton): min_v = conf.get('info', 'min_gajim_version', fallback=None) max_v = conf.get('info', 'max_gajim_version', fallback=None) + if min_v is None or max_v is None: + log.warning('Plugin without min/max version: %s', elem_name) + continue + gajim_v = gajim.__version__.split('+', 1)[0] gajim_v_cmp = parse_version(gajim_v)