Skip to content

Commit

Permalink
fix bugs, thanks @Sh4d0wHunt3rX :)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 18, 2024
1 parent efb2ff1 commit 3fc7ed4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bbot/core/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ async def finished_tasks(self, tasks, timeout=None):
except BaseException as e:
if isinstance(e, (TimeoutError, asyncio.exceptions.TimeoutError)):
self.log.warning(f"{self.name}: Timeout after {timeout:,} seconds in finished_tasks({tasks})")
for task in tasks:
for task in list(tasks):
task.cancel()
self._await_cancelled_task(task)
else:
Expand Down Expand Up @@ -683,5 +683,5 @@ async def cancel_all_tasks(self):
for client_id in list(self.tasks):
await self.cancel_task(client_id)
for client_id, tasks in self.child_tasks.items():
for task in tasks:
for task in list(tasks):
await self._await_cancelled_task(task)
2 changes: 1 addition & 1 deletion bbot/modules/baddns.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def handle_event(self, event):
context=f'{{module}}\'s "{r_dict["module"]}" module found {{event.type}}: {r_dict["description"]}',
)
else:
self.warning(f"Got unrecognized confidence level: {r['confidence']}")
self.warning(f"Got unrecognized confidence level: {r_dict['confidence']}")

found_domains = r_dict.get("found_domains", None)
if found_domains:
Expand Down

0 comments on commit 3fc7ed4

Please sign in to comment.