fix: Avoid exception on legacy MISP

pull/500/head
Raphaël Vinot 2019-10-30 16:27:31 +01:00
parent c43819892c
commit 047f3f96e8
1 changed files with 2 additions and 0 deletions

View File

@ -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 = []