# Nvidia Nemo Rl Error Handling

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

- Skill: `autohandai-community-skills/nvidia-nemo-rl-error-handling` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add autohandai-community-skills/nvidia-nemo-rl-error-handling`
- Raw SKILL.md: https://api.skillmd.com/api/skills/autohandai-community-skills/nvidia-nemo-rl-error-handling/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: Apache-2.0 AND CC-BY-4.0
- Author: autohandai (https://skillmd.com/u/autohandai-community-skills)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/autohandai-community-skills/nvidia-nemo-rl-error-handling

---


# Error Handling

## Use Specific Exceptions

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

**Don't:**
```python
try:
    open(path, "r").read()
except:
    print("Failed to open file")
```

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

