Skip to content

Commit

Permalink
chore: merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
batdevis committed Sep 20, 2024
2 parents 681dcf1 + ad78ab2 commit 1170291
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/chatbot/src/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

AWS_DEFAULT_REGION = os.getenv('CHB_AWS_DEFAULT_REGION', os.getenv('AWS_DEFAULT_REGION', None))


class Query(BaseModel):
question: str
queriedAt: str | None = None
Expand Down Expand Up @@ -165,7 +166,7 @@ async def queries_fetching(sessionId: str | None = None):
KeyConditionExpression=Key("sessionId").eq(sessionId)
)
except (BotoCoreError, ClientError) as e:
raise HTTPException(status_code=422, detail='db error')
raise HTTPException(status_code=422, detail=f"[queries_fetching] error: {e}")
return db_response['Items']

@app.patch("/queries/{id}")
Expand Down

0 comments on commit 1170291

Please sign in to comment.