From b049c8228405c5e70fc0e92ee015696c0bf69de8 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 21 Apr 2021 19:36:10 -0700 Subject: [PATCH] Update SAV_MysteryGiftDB.cs --- PKHeX.WinForms/Subforms/SAV_MysteryGiftDB.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PKHeX.WinForms/Subforms/SAV_MysteryGiftDB.cs b/PKHeX.WinForms/Subforms/SAV_MysteryGiftDB.cs index cb5937ce5..5a0f533dd 100644 --- a/PKHeX.WinForms/Subforms/SAV_MysteryGiftDB.cs +++ b/PKHeX.WinForms/Subforms/SAV_MysteryGiftDB.cs @@ -107,7 +107,10 @@ namespace PKHeX.WinForms var pk = Results[index].ConvertToPKM(SAV); pk = PKMConverter.ConvertToType(pk, SAV.PKMType, out var c); if (pk == null) - throw new FormatException(c); // shouldn't happen + { + WinFormsUtil.Error(c); + return; + } SAV.AdaptPKM(pk); PKME_Tabs.PopulateFields(pk, false); slotSelected = index;