Fix creating unknown RPCError messages with known code failing

This commit is contained in:
Lonami Exo
2018-08-04 00:43:53 +02:00
parent 785ef7676f
commit c1d67f35c9
2 changed files with 3 additions and 3 deletions

View File

@@ -69,4 +69,4 @@ def rpc_message_to_error(rpc_error, report_method=None):
if cls:
return cls(rpc_error.error_message)
return RPCError(rpc_error.error_code, rpc_error.error_message)
return RPCError(rpc_error.error_message, rpc_error.error_code)