Skip to content

Commit

Permalink
Merge pull request #12 from unclecode/main
Browse files Browse the repository at this point in the history
PR - update chains.py
  • Loading branch information
ntohidi authored Mar 17, 2024
2 parents a429b09 + 85e6786 commit 5505ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/libs/chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,4 @@ async def handle(self, context: Context):
class ExceptionHandler(Handler):
async def handle(self, context: Context, exception: Exception):
print(f"Error processing the request: {exception}")
return JSONResponse(content={"error": "An unexpected error occurred"}, status_code=500)
return JSONResponse(content={"error": "An unexpected error occurred. " + str(exception)}, status_code=500)

0 comments on commit 5505ba5

Please sign in to comment.