HF RL Explorer

Task: Python Exception Information Extractor

Task: Python Exception Information Extractor: a task in Terminal-Lego-15k (Harbor dataset). When catching exceptions in Python, you often need to extract detailed information about where the exception occurred. Your task is to create a Python script that demonstrates how to catch an exception and…

The task

When catching exceptions in Python, you often need to extract detailed information about where the exception occurred. Your task is to create a Python script that demonstrates how to catch an exception and extract its type, file name, and line number, then format this information in a specific way.

Part of PrimeIntellect/Terminal-Lego-15k.