Raise 5000 error for RPC calls

This commit is contained in:
Ivan Kravets
2023-01-27 20:51:37 +02:00
parent 4350c4ca48
commit 380652eb52
3 changed files with 3 additions and 3 deletions

View File

@ -25,5 +25,5 @@ class AccountRPC:
return getattr(client, method)(*args, **kwargs)
except Exception as exc: # pylint: disable=bare-except
raise JSONRPC20DispatchException(
code=4003, message="PIO Account Call Error", data=str(exc)
code=5000, message="PIO Account Call Error", data=str(exc)
) from exc

View File

@ -94,7 +94,7 @@ class PIOCoreRPC:
return PIOCoreRPC._process_result(result, to_json)
except Exception as exc: # pylint: disable=bare-except
raise JSONRPC20DispatchException(
code=4003, message="PIO Core Call Error", data=str(exc)
code=5000, message="PIO Core Call Error", data=str(exc)
) from exc
@staticmethod

View File

@ -25,5 +25,5 @@ class RegistryRPC:
return getattr(client, method)(*args, **kwargs)
except Exception as exc: # pylint: disable=bare-except
raise JSONRPC20DispatchException(
code=4003, message="Registry Call Error", data=str(exc)
code=5000, message="Registry Call Error", data=str(exc)
) from exc