Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -127,7 +127,7 @@ ResultItem = Union[OneResultItem, BulkResultItem]
|
|
127 |
class EndpointResponse(SQLModel):
|
128 |
execution_msg: str
|
129 |
execution_code: int
|
130 |
-
result: ResultItem
|
131 |
|
132 |
|
133 |
class ErrorResponse(SQLModel):
|
@@ -159,7 +159,7 @@ async def endpoint_output(endpoint_result: ResultItem, code: int = 0, error: str
|
|
159 |
|
160 |
except Exception as e:
|
161 |
print(output)
|
162 |
-
print(
|
163 |
code = 0
|
164 |
msg = 'Execution failed'
|
165 |
errors = f"Omg, an error occurred. endpoint_output Error: {e} & endpoint_result Error: {error} & endpoint_result: {endpoint_result}"
|
|
|
127 |
class EndpointResponse(SQLModel):
|
128 |
execution_msg: str
|
129 |
execution_code: int
|
130 |
+
result: Optional[ResultItem]
|
131 |
|
132 |
|
133 |
class ErrorResponse(SQLModel):
|
|
|
159 |
|
160 |
except Exception as e:
|
161 |
print(output)
|
162 |
+
print(endpoint_result)
|
163 |
code = 0
|
164 |
msg = 'Execution failed'
|
165 |
errors = f"Omg, an error occurred. endpoint_output Error: {e} & endpoint_result Error: {error} & endpoint_result: {endpoint_result}"
|