Skip to content

Commit d7885f8

Browse files
Merge pull request #2691 from blacklanternsecurity/fix-graphql-module
GraphQL Module Fix - None has no attribute `.status_code`
2 parents 61894ad + c3b8d66 commit d7885f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bbot/modules/graphql_introspection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ async def handle_event(self, event):
119119
}
120120
response = await self.helpers.request(**request_args)
121121
if not response or response.status_code != 200:
122-
self.debug(f"Failed to get GraphQL schema for {url} (status code {response.status_code})")
122+
self.debug(
123+
f"Failed to get GraphQL schema for {url} "
124+
f"{f'(status code {response.status_code})' if response else ''}"
125+
)
123126
continue
124127
try:
125128
response_json = response.json()

0 commit comments

Comments
 (0)