main: do not spam bae group if task is not fulfillable

This commit is contained in:
lemoer 2024-12-27 20:15:16 +01:00
parent 9ec684d345
commit 0b868e4154

View File

@ -396,13 +396,10 @@ class LabCleaningBot:
if is_err(reqs): if is_err(reqs):
if task not in unfulfillable_tasks: if task not in unfulfillable_tasks:
res = self.send_to_base_group("Could not fulfill task: " + task.name) print("Could not fulfill task: " + task.name)
unfulfillable_tasks.append(task) unfulfillable_tasks.append(task)
if is_err(res):
print(res.unwrap_err())
reqs = reqs.unwrap_err() reqs = reqs.unwrap_err()
else: else:
reqs = reqs.unwrap() reqs = reqs.unwrap()