We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca73977 + 5f1effe commit ab8b2e6Copy full SHA for ab8b2e6
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