Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
Don't cast the iterator to list
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed May 19, 2020
1 parent 077e3ab commit 9622136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ospd/ospd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ def run(self) -> None:
logger.info("Received Ctrl-C shutting-down ...")

def check_pending_scans(self):
for scan_id in list(self.scan_collection.ids_iterator()):
for scan_id in self.scan_collection.ids_iterator():
if self.get_scan_status(scan_id) == ScanStatus.PENDING:
scan_target = self.scan_collection.scans_table[scan_id].get(
'target'
Expand Down

0 comments on commit 9622136

Please sign in to comment.