Skip to content

Commit 1305c40

Browse files
committed
RDBC-782 Remove non existant import
1 parent 7067874 commit 1305c40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ravendb/documents/indexes/abstract_index_creation_tasks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from ravendb.documents.indexes.vector.options import VectorOptions
2323
from ravendb.documents.operations.indexes import PutIndexesOperation
2424
from ravendb.documents.store.definition import DocumentStoreBase
25-
from ravendb.exceptions.raven_exceptions import IndexCompilationException
2625
from ravendb.primitives import constants
2726

2827
_T_IndexDefinition = TypeVar("_T_IndexDefinition", bound=IndexDefinition)
@@ -269,7 +268,7 @@ def __set_suggestions(options: IndexFieldOptions, value: bool):
269268
return index_definition
270269

271270
except Exception as e:
272-
raise IndexCompilationException(f"Failed to create index {self._index_name}", e)
271+
raise RuntimeError(f"Failed to create index {self._index_name}", e) # todo: IndexCompilationException
273272

274273

275274
class IndexDefinitionBuilder(AbstractIndexDefinitionBuilder[IndexDefinition]):

0 commit comments

Comments
 (0)