diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-12-18 02:32:28 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-12-18 02:32:28 -0500 |
| commit | 2345d02b4147949dbdb8d9650842207102b517a1 (patch) | |
| tree | 48f5b10269aa532e914df5d1ec43bc7438f4aca1 | |
| parent | e78bbbd6f115f9c0ea610352afc8e7029edcd1b2 (diff) | |
add error handling
| -rw-r--r-- | Emby.Server.Implementations/Data/SqliteUserDataRepository.cs | 9 |
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); + } } } |
