diff --git a/turms/helpers.py b/turms/helpers.py index 1376d83..d977b41 100644 --- a/turms/helpers.py +++ b/turms/helpers.py @@ -74,6 +74,12 @@ def load_introspection_from_url( raise GenerationError( f"Failed to fetch schema from {url} Graphql error: {x['errors']}" ) + + if "data" not in x: + raise GenerationError(f"Failed to fetch schema from {url}. Did not receive data attripute: {x}") + + + return x["data"] diff --git a/turms/turms b/turms/turms deleted file mode 120000 index dcaf4d7..0000000 --- a/turms/turms +++ /dev/null @@ -1 +0,0 @@ -/home/jhnnsrs/Code/packages/turms/turms \ No newline at end of file