Skip to content

Commit

Permalink
virts-645d: fixing None fact (mitre#709)
Browse files Browse the repository at this point in the history
* fixing None fact

* omfg
  • Loading branch information
khyberspache authored and david committed Nov 4, 2019
1 parent c5964c0 commit 84b923a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/objects/c_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def _create_relationships(self, relationships, operation):
self.relationships.append(relationship)

async def _save_fact(self, operation, trait):
if not any(f.trait == trait[0] and f.value == trait[1] for f in operation.all_facts()):
if all(trait) and not any(f.trait == trait[0] and f.value == trait[1] for f in operation.all_facts()):
self.facts.append(Fact(trait=trait[0], value=trait[1], score=1))

async def _update_scores(self, operation, increment):
Expand Down

0 comments on commit 84b923a

Please sign in to comment.