Skip to content

Commit

Permalink
Raise APIError
Browse files Browse the repository at this point in the history
  • Loading branch information
gaya3-zipstack committed Sep 4, 2024
1 parent fbb8a21 commit 33695d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prompt-service/src/unstract/prompt_service/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def prompt_processor() -> Any:
RunLevel.RUN,
"Unable to obtain LLM / embedding / vectorDB",
)
return APIError(message=msg)
raise APIError(message=msg)

if output[PSKeys.TYPE] == PSKeys.TABLE:
try:
Expand Down Expand Up @@ -323,7 +323,7 @@ def prompt_processor() -> Any:
RunLevel.RUN,
"Extracted file not present.",
)
return APIError(message=msg)
raise APIError(message=msg)

# TODO: Use vectorDB name when available
_publish_log(
Expand Down

0 comments on commit 33695d0

Please sign in to comment.