delete the deprecated method (#5612)
This commit is contained in:
parent
af6e3869ff
commit
43335b5c87
19 changed files with 24 additions and 87 deletions
|
|
@ -20,6 +20,7 @@ from controllers.console.datasets.error import (
|
|||
ArchivedDocumentImmutableError,
|
||||
DocumentAlreadyFinishedError,
|
||||
DocumentIndexingError,
|
||||
IndexingEstimateError,
|
||||
InvalidActionError,
|
||||
InvalidMetadataError,
|
||||
)
|
||||
|
|
@ -388,6 +389,8 @@ class DocumentIndexingEstimateApi(DocumentResource):
|
|||
"in the Settings -> Model Provider.")
|
||||
except ProviderTokenNotInitError as ex:
|
||||
raise ProviderNotInitializeError(ex.description)
|
||||
except Exception as e:
|
||||
raise IndexingEstimateError(str(e))
|
||||
|
||||
return response
|
||||
|
||||
|
|
@ -493,6 +496,8 @@ class DocumentBatchIndexingEstimateApi(DocumentResource):
|
|||
"in the Settings -> Model Provider.")
|
||||
except ProviderTokenNotInitError as ex:
|
||||
raise ProviderNotInitializeError(ex.description)
|
||||
except Exception as e:
|
||||
raise IndexingEstimateError(str(e))
|
||||
return response
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue