fail silently if url can not be resolved
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user