Improve rest api client / status response

This commit is contained in:
Matthias
2019-11-17 14:40:59 +01:00
parent 841c379797
commit 3aee8d2b2a
3 changed files with 21 additions and 10 deletions

View File

@@ -330,8 +330,11 @@ class ApiServer(RPC):
Returns the current status of the trades in json format
"""
results = self._rpc_trade_status()
return self.rest_dump(results)
try:
results = self._rpc_trade_status()
return self.rest_dump(results)
except RPCException:
return self.rest_dump([])
@require_login
@rpc_catch_errors