Skip to content

Commit

Permalink
returns decryption error map to 500
Browse files Browse the repository at this point in the history
  • Loading branch information
KPrasch committed Nov 2, 2023
1 parent ccbecbb commit cda1d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nucypher/network/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def threshold_decrypt():
except EvalError as e:
return Response(e.message, status=e.status_code)
except this_node.DecryptionFailure as e:
return Response(str(e), status=HTTPStatus.BAD_REQUEST)
return Response(str(e), status=HTTPStatus.INTERNAL_SERVER_ERROR)
except Exception as e:
return Response(str(e), status=HTTPStatus.INTERNAL_SERVER_ERROR)

Expand Down

0 comments on commit cda1d1b

Please sign in to comment.