Commit 57b825c6 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix runtime exception

parent c4c9ceb9
......@@ -314,7 +314,13 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles";
if (!moc)
return;
BOOL success = [[self managedObjectContext] save:&error];
BOOL success = NO;
@try {
success = [[self managedObjectContext] save:&error];
}
@catch (NSException *exception) {
NSLog(@"Saving pending changes failed");
}
NSAssert1(success, @"Can't save: %@", error);
#if !TARGET_OS_IPHONE && MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5
NSProcessInfo *process = [NSProcessInfo processInfo];
......
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