From 2a9ec3067debed0a11e5d5fde79745089883e138 Mon Sep 17 00:00:00 2001 From: Mieszko Banczerowski Date: Wed, 27 Nov 2019 13:12:20 +0100 Subject: [PATCH] Fix sending Exceptions with custom data --- src/galaxy/api/jsonrpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/galaxy/api/jsonrpc.py b/src/galaxy/api/jsonrpc.py index 4af843e..7861242 100644 --- a/src/galaxy/api/jsonrpc.py +++ b/src/galaxy/api/jsonrpc.py @@ -29,7 +29,7 @@ class JsonRpcError(Exception): } if self.data is not None: - obj["error"]["data"] = self.data + obj["data"] = self.data return obj