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