Skip to content

Commit

Permalink
Fix YAML loading of analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
jondricek authored Feb 29, 2024
1 parent 85c9292 commit fa64d0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/generate_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
analytics = []
for af in analytics_files:
print("appending {}".format(af))
analytics.append(yaml.load(open(af,encoding='utf-8').read()))
with open(af, encoding='utf-8') as f:
analytic_data = yaml.safe_load(f)
analytics.append(analytic_data)
#analytics = [yaml.load(open(analytic_file).read()) for analytic_file in analytics_files]

# Load ATT&CK content, which is needed to get names for technique IDs
Expand Down

0 comments on commit fa64d0f

Please sign in to comment.