Skip to content

Commit

Permalink
fix: Add setter for Attribute in MISPEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Dec 21, 2017
1 parent 9c4e98f commit 749acd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pymisp/mispevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,10 @@ def add_attribute(self, type, value, **kwargs):
def attributes(self):
return self.Attribute

@attributes.setter
def attributes(self, attributes):
self.Attribute = attributes

@property
def related_events(self):
return self.RelatedEvent
Expand Down

0 comments on commit 749acd7

Please sign in to comment.