Skip to content

Commit

Permalink
fix: Incorporating fix #129
Browse files Browse the repository at this point in the history
  • Loading branch information
MSAdministrator committed Feb 10, 2023
1 parent 7f2b686 commit 59ed9db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyattck/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _read_from_disk(self, path):
try:
with open(path) as f:
if path.endswith(".json"):
return Configuration(**json.load(f))
return json.load(f)
elif path.endswith(".yml") or path.endswith(".yaml"):
return Configuration(**yaml.load(f, Loader=yaml.SafeLoader))
else:
Expand Down

1 comment on commit 59ed9db

@nguyenl95
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When will this fix be applied to the official Pypi version?

This causes unable to use local data files (since it reads ATT&CK data file as Configuration object)

Please sign in to comment.