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

[runwhen-local-feedback] Scan error handling when branch ref or meta file doesn't exist #244

Open
stewartshea opened this issue Aug 11, 2023 · 0 comments
Assignees

Comments

@stewartshea
Copy link
Contributor

Observation
We can run into some scenarios where the referenced troubleshooting code might not exist, or it exists and has no meta.yaml associated with it.

Request failed with status code: 404
Traceback (most recent call last):
  File "/workspace-builder/run.py", line 441, in <module>
    main()
  File "/workspace-builder/run.py", line 353, in main
    cheatsheet.cheat_sheet(output_path)
  File "/workspace-builder/cheatsheet.py", line 693, in cheat_sheet
    interesting_commands = search_keywords(parsed_robot, parsed_runbook_config, search_list, meta)
  File "/workspace-builder/cheatsheet.py", line 213, in search_keywords
    for cmd_meta in meta['commands']:
TypeError: 'NoneType' object is not subscriptable

Possible Suggestions
We need to add in some checking and default content here to keep building the documentation even when the file is not accessible.

Any other details or context

@stewartshea stewartshea self-assigned this Aug 11, 2023
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