Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions osf/models/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,10 @@ def should_update_search(self):

def update_search(self):
update_share(self)
from website import search
from website.search import search, exceptions
try:
search.search.update_file(self)
except search.exceptions.SearchUnavailableError as e:
search.update_file(self)
except exceptions.SearchUnavailableError as e:
logger.exception(e)
sentry.log_exception(e)

Expand Down
Loading