fail silently if url can not be resolved

This commit is contained in:
2024-12-22 18:48:30 +01:00
parent 40380d088f
commit ecb7ae0d1a

View File

@@ -122,11 +122,18 @@ internal static class SharedFunctions
foreach (var action in actions) foreach (var action in actions)
{ {
if (action.SourceType != SourceType.DirectLink) if (action.SourceType != SourceType.DirectLink)
{
try
{ {
Task.Run(async () => Task.Run(async () =>
{ {
action.SourceUrl = await factory.ResolveSourceUrl(action); action.SourceUrl = await factory.ResolveSourceUrl(action);
}).Wait(); }).Wait();
}
catch (Exception)
{
// Fail silently
}
api.UpdateItem(action); api.UpdateItem(action);
} }
} }