diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-04-11 00:58:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-11 00:58:49 +0200 |
| commit | 240e67d48568e1bedddd1658a68e0dac0a2f8699 (patch) | |
| tree | 8e992c14ee668676f2d122113bdfaa2e50796b59 /Emby.Server.Implementations/Library/LibraryManager.cs | |
| parent | f4654aaeb1d2c83a8c17b2c2553459779450e1ad (diff) | |
| parent | f2cba352e58f5d52693875365fdd400ad7c11863 (diff) | |
Merge pull request #5747 from cvium/more-convertimage-fixes
Catch IOException and include stack trace when saving images
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/LibraryManager.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs index 494eb5929..7f29e3e99 100644 --- a/Emby.Server.Implementations/Library/LibraryManager.cs +++ b/Emby.Server.Implementations/Library/LibraryManager.cs @@ -1917,14 +1917,14 @@ namespace Emby.Server.Implementations.Library _logger.LogWarning("Cannot get image index for {ImagePath}", img.Path); continue; } - catch (InvalidOperationException) + catch (Exception ex) when (ex is InvalidOperationException || ex is IOException) { - _logger.LogWarning("Cannot fetch image from {ImagePath}", img.Path); + _logger.LogWarning(ex, "Cannot fetch image from {ImagePath}", img.Path); continue; } catch (HttpRequestException ex) { - _logger.LogWarning("Cannot fetch image from {ImagePath}. Http status code: {HttpStatus}", img.Path, ex.StatusCode); + _logger.LogWarning(ex, "Cannot fetch image from {ImagePath}. Http status code: {HttpStatus}", img.Path, ex.StatusCode); continue; } } |
