HF RL Explorer

Task: Determine and Report Exception Types in Python

Task: Determine and Report Exception Types in Python: a task in Terminal-Lego-15k (Harbor dataset). In Python, when an exception occurs inside a try/except block, it is important to be able to identify what type of exception occurred and what message it carried. A bare except: clause catches…

The task

In Python, when an exception occurs inside a `try/except` block, it is important to be able to identify **what type of exception** occurred and **what message** it carried. A bare `except:` clause catches everything but gives you no information about what went wrong.

Part of PrimeIntellect/Terminal-Lego-15k.