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)
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);
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