Skip to content
Browse files

don't explode in the user's face if the system has a badly configured…

  • Loading branch information...
1 parent 4ba5672 commit e8999159a3df932c45a165fc9d3c8685adb94f46 @ejucovy ejucovy committed Jan 11, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 multireposearch/search.py
View
6 multireposearch/search.py
@@ -85,7 +85,11 @@ def get_search_results(self, req, query, filters):
return
for filename, reponame in self.search_backend.find_words(query):
- repo = self.env.get_repository(reponame=reponame, authname=req.authname)
+ try:
+ repo = self.env.get_repository(reponame=reponame, authname=req.authname)
+ except Exception, e:
+ # @@TODO: log it!
+ continue
if repo is None:
# @@TODO: log it? ask the search backend to remove the reference?
continue

0 comments on commit e899915

Please sign in to comment.
Something went wrong with that request. Please try again.