diff --git a/SwiftUI/Model/SearchOperation/SearchOperation.mm b/SwiftUI/Model/SearchOperation/SearchOperation.mm index c608819c9..e8cda4eb1 100644 --- a/SwiftUI/Model/SearchOperation/SearchOperation.mm +++ b/SwiftUI/Model/SearchOperation/SearchOperation.mm @@ -67,7 +67,9 @@ - (void)performSearch { } // perform index and title search - [self addIndexSearchResults:indexSearchArchives]; + try { + [self addIndexSearchResults:indexSearchArchives]; + } catch (std::exception) { } if (titleSearchArchives.size() > 0) { int count = std::max((35 - (int)[self.results count]) / (int)titleSearchArchives.size(), 5); [self addTitleSearchResults:titleSearchArchives count:(int)count];