We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83bc0bb commit 5fb916eCopy full SHA for 5fb916e
1 file changed
osf/models/files.py
@@ -448,10 +448,10 @@ def should_update_search(self):
448
449
def update_search(self):
450
update_share(self)
451
- from website import search
+ from website.search import search, exceptions
452
try:
453
- search.search.update_file(self)
454
- except search.exceptions.SearchUnavailableError as e:
+ search.update_file(self)
+ except exceptions.SearchUnavailableError as e:
455
logger.exception(e)
456
sentry.log_exception(e)
457
0 commit comments