Basic error handling (try-except)