From 510985d7c435b7a255eacd5a89ee386e21cac060 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 75de1147a..e48d0e751 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)