Skip to content

Commit

Permalink
Merge pull request #1104 from yogeshojha/1103-fix-scan-history
Browse files Browse the repository at this point in the history
fix attribute error on scan history #1103
  • Loading branch information
AnonymousWP authored Dec 5, 2023
2 parents 5cc63b1 + ab25cb4 commit 6132ab9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/scanEngine/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def get_number_of_steps(self):

@hybrid_property
def tasks(self):
if not self.yaml_configuration or not yaml.safe_load(self.yaml_configuration):
return []
return list(yaml.safe_load(self.yaml_configuration).keys())

class Wordlist(models.Model):
Expand Down

0 comments on commit 6132ab9

Please sign in to comment.