Error Handling in Python - Edindx