Enforce min and max version for plugin manifest

This reduces problems with old plugins without max version
This commit is contained in:
Philipp Hörist 2018-11-11 10:21:46 +01:00
parent e4a9ffe1ca
commit 30a20e16d2
1 changed files with 4 additions and 0 deletions

View File

@ -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)