Fixed: Replace one stupid hack with another.

This commit is contained in:
Qstick 2018-12-06 22:20:13 -05:00
parent 9f9441788c
commit 8465c2d227
2 changed files with 10 additions and 7 deletions

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
@ -164,6 +164,14 @@ namespace NzbDrone.Common.Instrumentation.Sentry
}
};
// Fix openflixr being stupid with permissions
var serverName = sentryEvent.Contexts.Device.Name.ToLower();
if (serverName == "openflixr")
{
return;
}
if (logEvent.Exception != null)
{
sentryEvent.Fingerprint.Add(logEvent.Exception.GetType().FullName);
@ -191,4 +199,4 @@ namespace NzbDrone.Common.Instrumentation.Sentry
}
}
}
}
}

View File

@ -105,11 +105,6 @@ namespace NzbDrone.Core.Datastore
return dataMapper;
});
if (db.Migration > 100) //Quick DB Migration Check. This should get rid of users on old DB format
{
throw new CorruptDatabaseException("Invalid DB, Please Delete and Restart Lidarr");
}
return db;
}