Merge pull request #40 from arthur4ires/patch-4

fix: KeyError: 'data'
master
Swissky 2023-01-24 12:34:33 +01:00 committed by GitHub
commit 344a00210e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,11 @@ def dump_schema(url, method, graphversion, headers, use_json, proxy):
line = 0
if 'data' not in schema:
print('[+] Unable to download schema.')
exit()
for line, types in enumerate(schema['data']['__schema']['types']):
if types['kind'] == "OBJECT":