mirror of https://github.com/MISP/PyMISP
fix: Avoid exception on legacy MISP
parent
c43819892c
commit
047f3f96e8
|
@ -1280,6 +1280,8 @@ class ExpandedPyMISP(PyMISP):
|
||||||
if not expanded:
|
if not expanded:
|
||||||
return u
|
return u
|
||||||
else:
|
else:
|
||||||
|
if self._old_misp((2, 4, 117), '2020-01-01', sys._getframe().f_code.co_name):
|
||||||
|
return u, None, None
|
||||||
r = MISPRole()
|
r = MISPRole()
|
||||||
r.from_dict(**user['Role'])
|
r.from_dict(**user['Role'])
|
||||||
usersettings = []
|
usersettings = []
|
||||||
|
|
Loading…
Reference in New Issue