mirror of https://github.com/MISP/PyMISP
fix: Properly __repr__ MISPUser
parent
f9c8fb815e
commit
7a5945a5ce
|
@ -862,6 +862,11 @@ class MISPUser(AbstractMISP):
|
||||||
kwargs = kwargs.get('User')
|
kwargs = kwargs.get('User')
|
||||||
super(MISPUser, self).from_dict(**kwargs)
|
super(MISPUser, self).from_dict(**kwargs)
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
if hasattr(self, 'email'):
|
||||||
|
return '<{self.__class__.__name__}(object_uuid={self.email})'.format(self=self)
|
||||||
|
return '<{self.__class__.__name__}(NotInitialized)'.format(self=self)
|
||||||
|
|
||||||
|
|
||||||
class MISPOrganisation(AbstractMISP):
|
class MISPOrganisation(AbstractMISP):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue