Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'str' object has no attribute 'keys' during YAML parsing #59

Closed
KumpunPy opened this issue Jul 1, 2023 · 0 comments
Closed

Comments

@KumpunPy
Copy link

KumpunPy commented Jul 1, 2023

Hi.

I unintended deleted the folder "arsenal/data/cheats" and I created the folder back, then running the tool, I got this error:

Traceback (most recent call last):
  File "/opt/homebrew/bin/arsenal", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/arsenal/app.py", line 185, in main
    App().run()
  File "/opt/homebrew/lib/python3.11/site-packages/arsenal/app.py", line 58, in run
    cheatsheets = cheat.Cheats().read_files(config.CHEATS_PATHS, config.FORMATS,
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/arsenal/modules/cheat.py", line 445, in read_files
    parsers[file_format](str(entry.absolute()))
  File "/opt/homebrew/lib/python3.11/site-packages/arsenal/modules/cheat.py", line 224, in parse_yaml
    if all(item in tool.keys() for item in required_fields):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/arsenal/modules/cheat.py", line 224, in <genexpr>
    if all(item in tool.keys() for item in required_fields):
                   ^^^^^^^^^
AttributeError: 'str' object has no attribute 'keys'

Is there any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant