Nvidia Nemo Rl Error Handling

Error handling guidelines for NeMo-RL. Covers exception specificity, minimal try bodies, and else blocks.

autohandai Updated

File contents

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")

autohandai/community-skills/tree/main/nvidia-nemo-rl-error-handling commit c963819351

Frequently asked questions

npx skillmds@latest add autohandai-community-skills/nvidia-nemo-rl-error-handling