Commit 4e775ecb authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix runtime exception

(cherry picked from commit 57b825c6)
parent ebd6ae44
......@@ -379,7 +379,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