From 91096047ac533fe6dd90b61d2dbf6deb369d8876 Mon Sep 17 00:00:00 2001 From: Ihor Sokhan Date: Thu, 26 Mar 2026 18:08:03 +0200 Subject: [PATCH] fixed import issue --- osf/models/files.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osf/models/files.py b/osf/models/files.py index e01b245bfac..823ae1365c7 100644 --- a/osf/models/files.py +++ b/osf/models/files.py @@ -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)