We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21e4552 commit 5f1effeCopy full SHA for 5f1effe
bbot_server/modules/targets/targets_api.py
@@ -127,7 +127,7 @@ async def get_asset_scope(self, host: str):
127
"""
128
Given a host, get all the targets it's a part of
129
130
- asset = await self.root.assets.collection.find_one({"host": host}, {"dns_links": 1})
+ asset = await self.root.assets.collection.find_one({"host": host}, {"dns_links": 1}) or {}
131
asset_dns_links = asset.get("dns_links", {})
132
asset_scope = []
133
for target_id in await self.get_target_ids():
0 commit comments