Modified except to print the error