Agent Skills: Error Handling

Error handling guidelines for NeMo-RL. Covers exception specificity,

UncategorizedID: autohandai/community-skills/nvidia-nemo-rl-error-handling

Install this agent skill to your local

pnpm dlx add-skill https://github.com/autohandai/community-skills/tree/HEAD/nvidia-nemo-rl-error-handling

Skill Files

Browse the full folder contents for nvidia-nemo-rl-error-handling.

Download Skill

Loading file tree…

nvidia-nemo-rl-error-handling/SKILL.md

Skill Metadata

Name
nvidia-nemo-rl-error-handling
Description
Error handling guidelines for NeMo-RL. Covers exception specificity,

Error Handling

Use Specific Exceptions

When using try-except blocks, limit the except to the smallest set of errors possible.

Don't:

try:
    open(path, "r").read()
except:
    print("Failed to open file")

Do:

try:
    open(path, "r").read()
except FileNotFoundError:
    print("Failed to open file")