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

@@ -123,10 +123,17 @@ internal static class SharedFunctions
{ {
if (action.SourceType != SourceType.DirectLink) if (action.SourceType != SourceType.DirectLink)
{ {
Task.Run(async () => try
{ {
action.SourceUrl = await factory.ResolveSourceUrl(action); Task.Run(async () =>
}).Wait(); {
action.SourceUrl = await factory.ResolveSourceUrl(action);
}).Wait();
}
catch (Exception)
{
// Fail silently
}
api.UpdateItem(action); api.UpdateItem(action);
} }
} }