Fix sending Exceptions with custom data

This commit is contained in:
Mieszko Banczerowski
2019-11-27 13:12:20 +01:00
committed by Rafal Makagon
parent 69532a5ba9
commit 2a9ec3067d

View File

@@ -29,7 +29,7 @@ class JsonRpcError(Exception):
}
if self.data is not None:
obj["error"]["data"] = self.data
obj["data"] = self.data
return obj