Commit febbd62e authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix runtime exception

parent 447f2257
...@@ -800,7 +800,15 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles"; ...@@ -800,7 +800,15 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles";
NSManagedObjectContext *moc = [self managedObjectContext]; NSManagedObjectContext *moc = [self managedObjectContext];
if (!moc) if (!moc)
return; return;
NSArray *results = [moc executeFetchRequest:request error:nil]; NSArray *results;
@try {
results = [moc executeFetchRequest:request error:nil];
@catch (NSException *exception) {
NSLog(@"media database update failed");
NSFileManager *fileManager = [NSFileManager defaultManager]; NSFileManager *fileManager = [NSFileManager defaultManager];
unsigned int count = (unsigned int)results.count; unsigned int count = (unsigned int)results.count;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment