kopia lustrzana https://github.com/bugout-dev/moonstream
Add changes.
rodzic
d794a887ce
commit
789ed431c1
|
@ -291,7 +291,7 @@ class QueryInfoResponse(BaseModel):
|
|||
query: str
|
||||
query_id: str
|
||||
public: bool = False
|
||||
preapproved: bool = False
|
||||
preapprove: bool = False
|
||||
approved: bool = False
|
||||
parameters: List[str] = Field(default_factory=list)
|
||||
created_at: datetime
|
||||
|
|
|
@ -184,6 +184,10 @@ async def get_query_handler(
|
|||
raise MoonstreamHTTPException(status_code=500, internal_error=e)
|
||||
|
||||
try:
|
||||
if entry.content is None:
|
||||
raise MoonstreamHTTPException(
|
||||
status_code=403, detail=f"Query is empty. Please update it."
|
||||
)
|
||||
query = text(entry.content)
|
||||
except Exception as e:
|
||||
raise MoonstreamHTTPException(
|
||||
|
|
Ładowanie…
Reference in New Issue