Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dojo/importers/endpoint_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ def chunk_endpoints_and_disperse(
endpoints: list[Endpoint],
**kwargs: dict,
) -> None:
if not endpoints:
return
dojo_dispatch_task(EndpointManager.add_endpoints_to_unsaved_finding, finding, endpoints, sync=True)

@staticmethod
Expand Down
2 changes: 2 additions & 0 deletions dojo/importers/location_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def chunk_locations_and_disperse(
locations: list[AbstractLocation],
**kwargs: dict,
) -> None:
if not locations:
return
dojo_dispatch_task(LocationManager.add_locations_to_unsaved_finding, finding, locations, sync=True)

@staticmethod
Expand Down