From e8fa9e5756c98e532b7f3e9039fff71ba9e77327 Mon Sep 17 00:00:00 2001 From: hldh214 Date: Tue, 22 Aug 2023 09:46:32 +0900 Subject: [PATCH] feat(farmer): imp `on_field_objects()` Signed-off-by: hldh214 --- lokbot/farmer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lokbot/farmer.py b/lokbot/farmer.py index 3ec2f8b0..aed14bf5 100644 --- a/lokbot/farmer.py +++ b/lokbot/farmer.py @@ -794,7 +794,8 @@ def on_field_objects(data): except OtherException as error_code: if str(error_code) in ( 'full_task', 'not_enough_troop', 'insufficient_actionpoint', 'not_open_gate', - 'no_drago_action_point', 'no_drago', 'exceed_crystal_daily_quota' + 'no_drago_action_point', 'no_drago', 'exceed_crystal_daily_quota', + 'not_available_drago' ): logger.warning(f'on_field_objects: {error_code}, skip') self.field_object_processed = True