Skip to content

Commit

Permalink
Async Importer: Correct typing bug (#10373)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch authored Jun 10, 2024
1 parent d43b39c commit 751ac49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dojo/importers/default_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def async_process_findings(
# After all tasks have been started, time to pull the results
logger.info('IMPORT_SCAN: Collecting Findings')
for results in results_list:
serial_new_findings = results.get()
serial_new_findings = results
new_findings += [next(deserialize("json", finding)).object for finding in serial_new_findings]
logger.info('IMPORT_SCAN: All Findings Collected')
# Indicate that the test is not complete yet as endpoints will still be rolling in.
Expand Down
2 changes: 1 addition & 1 deletion dojo/importers/default_reimporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def async_process_findings(
serial_reactivated_findings,
serial_findings_to_mitigate,
serial_untouched_findings,
) = results.get()
) = results
new_findings += [
next(deserialize("json", finding)).object
for finding in serial_new_findings
Expand Down

0 comments on commit 751ac49

Please sign in to comment.