Don't load plots that don't need to load

This commit is contained in:
Mariano Sorgente 2021-02-21 20:16:40 +09:00 committed by Mariano Sorgente
parent 2d88a640cd
commit 70e5cf2a66
2 changed files with 3 additions and 4 deletions

View File

@ -47,8 +47,6 @@ class HarvesterAPI:
self.harvester.log.warning("Not farming any plots on this harvester. Check your configuration.")
return
self.harvester._state_changed("plots")
@peer_required
@api_request
async def new_signage_point_harvester(

View File

@ -67,8 +67,9 @@ class RpcServer:
payload["data"]["success"] = True
try:
await self.websocket.send_str(dict_to_json_str(payload))
except Exception as e:
self.log.warning(f"Sending data failed. Exception {e}.")
except Exception:
tb = traceback.format_exc()
self.log.warning(f"Sending data failed. Exception {tb}.")
def state_changed(self, *args):
if self.websocket is None: