aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteUserDataRepository.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-12-18 02:32:28 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-12-18 02:32:28 -0500
commit2345d02b4147949dbdb8d9650842207102b517a1 (patch)
tree48f5b10269aa532e914df5d1ec43bc7438f4aca1 /Emby.Server.Implementations/Data/SqliteUserDataRepository.cs
parente78bbbd6f115f9c0ea610352afc8e7029edcd1b2 (diff)
add error handling
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteUserDataRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/SqliteUserDataRepository.cs9
1 files changed, 8 insertions, 1 deletions
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);
+ }
}
}