Enforce min and max version for plugin manifest
This reduces problems with old plugins without max version
This commit is contained in:
parent
e4a9ffe1ca
commit
30a20e16d2
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue