mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-02 08:58:11 +02:00
corrected error message (#2502)
This commit is contained in:
parent
d3dfabb20e
commit
54bb79303c
@ -669,9 +669,7 @@ def get_persona_by_id(
|
||||
result = db_session.execute(persona_stmt)
|
||||
persona = result.scalar_one_or_none()
|
||||
if persona is None:
|
||||
raise ValueError(
|
||||
f"Persona with ID {persona_id} does not exist or does not belong to user"
|
||||
)
|
||||
raise ValueError(f"Persona with ID {persona_id} does not exist")
|
||||
return persona
|
||||
|
||||
# or check if user owns persona
|
||||
|
Loading…
x
Reference in New Issue
Block a user