Skip to content

Commit

Permalink
fix: [stix2 import] Avoiding issue with getattr which isn't able to…
Browse files Browse the repository at this point in the history
… check whether a `__` prefixed variable exists or not
  • Loading branch information
chrisr3d committed Jul 19, 2024
1 parent 85c2fe7 commit db540fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misp_stix_converter/stix2misp/stix2_to_misp.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def course_of_action_parser(self) -> _COURSE_OF_ACTION_PARSER_TYPING:

@property
def event_tags(self) -> list:
return getattr(self, '__event_tags', {})
return self.__event_tags

@property
def generic_info_field(self) -> str:
Expand Down

0 comments on commit db540fe

Please sign in to comment.