diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-10-07 11:14:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-07 11:14:43 -0400 |
| commit | 50ff08310ea55338dcdaeabc936c024f5573599a (patch) | |
| tree | e911343b68d44033ada99c756b2b22842481c344 /MediaBrowser.Server.Startup.Common | |
| parent | a0897acd5c97bca60bfd20a72816e30e07f626f5 (diff) | |
| parent | c8d923da938f7704cd218e7a01b602195ba9c58b (diff) | |
Merge pull request #2213 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Server.Startup.Common')
| -rw-r--r-- | MediaBrowser.Server.Startup.Common/ApplicationHost.cs | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs index 18b340709..0ea50b39e 100644 --- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs +++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs @@ -677,19 +677,11 @@ namespace MediaBrowser.Server.Startup.Common /// <returns>Task{IUserRepository}.</returns> private async Task<IUserRepository> GetUserRepository() { - try - { - var repo = new SqliteUserRepository(LogManager, ApplicationPaths, JsonSerializer, NativeApp.GetDbConnector(), MemoryStreamProvider); + var repo = new SqliteUserRepository(LogManager, ApplicationPaths, JsonSerializer, NativeApp.GetDbConnector(), MemoryStreamProvider); - await repo.Initialize().ConfigureAwait(false); + await repo.Initialize().ConfigureAwait(false); - return repo; - } - catch (Exception ex) - { - Logger.ErrorException("Error opening user db", ex); - throw; - } + return repo; } /// <summary> @@ -818,7 +810,6 @@ namespace MediaBrowser.Server.Startup.Common GetExports<IMetadataService>(), GetExports<IMetadataProvider>(), GetExports<IMetadataSaver>(), - GetExports<IImageSaver>(), GetExports<IExternalId>()); ImageProcessor.AddParts(GetExports<IImageEnhancer>()); |
