結果 : how to get exception type in python