Fixed legacy IPC not handling exceptions thrown by ProfileManager.RemoveTemporaryProfile, changelog text fix

This commit is contained in:
RisaDev
2024-03-30 19:35:44 +03:00
parent c8b4888ebd
commit a00ae1d0c5
2 changed files with 10 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ using CustomizePlus.Armatures.Events;
using CustomizePlus.Armatures.Data;
using CustomizePlus.GameData.Extensions;
using Penumbra.GameData.Interop;
using CustomizePlus.Profiles.Exceptions;
namespace CustomizePlus.Api.Compatibility;
@@ -265,7 +266,14 @@ public class CustomizePlusLegacyIpc : IDisposable
return;
}*/
_profileManager.RemoveTemporaryProfile(actor);
try
{
_profileManager.RemoveTemporaryProfile(actor);
}
catch (Exception ex)
{
_logger.Warning($"[LEGACY IPC DO NOT USE] Unable to revert character. Character: {character?.Name}, exception: {ex}");
}
}
private string GetBase64String(string data)