Repository navigation
Commit da98d4d
fix: report unreadable SKILL.md files to on_error
Merge #7760
list_skills_in_dir now passes any OSError raised while reading a skill's
SKILL.md (for example a PermissionError) to on_error, or logs and skips
that skill without it. Before, only FileNotFoundError was handled, so an
unreadable SKILL.md raised out of the listing and the skills already
collected were lost. A caller without on_error that relied on that
exception now gets a warning and a result without that skill.
PiperOrigin-RevId: 10107759841 parent f6325bc commit da98d4d
2 files changed
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
| 613 | + | |
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
719 | 746 | | |
720 | 747 | | |
721 | 748 | | |
| |||
0 commit comments