Skip to content

Commit

Permalink
Add one more exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
BPerlakiH committed Apr 20, 2024
1 parent 8c57208 commit 06f7e32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SwiftUI/Model/SearchOperation/SearchOperation.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 06f7e32

Please sign in to comment.