From 2345d02b4147949dbdb8d9650842207102b517a1 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 18 Dec 2016 02:32:28 -0500 Subject: [PATCH] add error handling --- .../Data/SqliteUserDataRepository.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs b/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs index 2e39b038a..a31f0ed53 100644 --- a/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs +++ b/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs @@ -80,7 +80,14 @@ namespace Emby.Server.Implementations.Data AddColumn(db, "userdata", "SubtitleStreamIndex", "int", existingColumnNames); }, TransactionMode); - ImportUserDataIfNeeded(connection); + try + { + ImportUserDataIfNeeded(connection); + } + catch (Exception ex) + { + Logger.ErrorException("Error in ImportUserDataIfNeeded", ex); + } } }