Commit 510985d7 authored by Philipp Hörist's avatar Philipp Hörist

Enforce min and max version for plugin manifest

This reduces problems with old plugins without max version
parent 57dad43d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment