Loading...
Loading...
Error handling guidelines for NeMo-RL. Covers exception specificity, minimal try bodies, and else blocks.
npx skill4agent add nvidia/skills error-handlingtry:
open(path, "r").read()
except:
print("Failed to open file")try:
open(path, "r").read()
except FileNotFoundError:
print("Failed to open file")