Skip to content

Commit 5fb916e

Browse files
fixed import issue (#11663)
1 parent 83bc0bb commit 5fb916e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

osf/models/files.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,10 @@ def should_update_search(self):
448448

449449
def update_search(self):
450450
update_share(self)
451-
from website import search
451+
from website.search import search, exceptions
452452
try:
453-
search.search.update_file(self)
454-
except search.exceptions.SearchUnavailableError as e:
453+
search.update_file(self)
454+
except exceptions.SearchUnavailableError as e:
455455
logger.exception(e)
456456
sentry.log_exception(e)
457457

0 commit comments

Comments
 (0)