Skip to content

Commit

Permalink
exc handling in api
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Nov 24, 2023
1 parent 8b49b5c commit 0eb6754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dipdup/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async def resolved_method(request: web.Request) -> web.Response:
return web.Response(body='Request is not a JSON', status=400)
except Error as e:
return web.Response(body=str(e), status=400)
except FrameworkException as e:
except Exception as e:
return web.Response(body=str(e), status=500)

return resolved_method
Expand Down

0 comments on commit 0eb6754

Please sign in to comment.