mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Don't fail people retrieval when one fails to load
This commit is contained in:
parent
f23e957381
commit
20014dea8c
@ -131,8 +131,20 @@ namespace MediaBrowser.Api.UserLibrary
|
|||||||
.Select(i => i.Name)
|
.Select(i => i.Name)
|
||||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||||
|
|
||||||
.Select(name => LibraryManager.GetPerson(name)
|
.Select(name =>
|
||||||
);
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return LibraryManager.GetPerson(name);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
// Already logged at lower levels
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
).Where(i => i != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user