結果 : python check if exception is of type