forked from LeineLab-Public/lab-signal-bot
main: do not spam bae group if task is not fulfillable
This commit is contained in:
parent
9ec684d345
commit
0b868e4154
5
main.py
5
main.py
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user