Skip to content

Commit ab8b2e6

Browse files
authored
Merge pull request #94 from blacklanternsecurity/new_assetFix
New asset fix
2 parents ca73977 + 5f1effe commit ab8b2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bbot_server/modules/targets/targets_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async def get_asset_scope(self, host: str):
127127
"""
128128
Given a host, get all the targets it's a part of
129129
"""
130-
asset = await self.root.assets.collection.find_one({"host": host}, {"dns_links": 1})
130+
asset = await self.root.assets.collection.find_one({"host": host}, {"dns_links": 1}) or {}
131131
asset_dns_links = asset.get("dns_links", {})
132132
asset_scope = []
133133
for target_id in await self.get_target_ids():

0 commit comments

Comments
 (0)