Clean up a few utility functions

This commit is contained in:
Mads Marquart
2019-06-27 00:34:36 +02:00
parent ad705d544a
commit 78c307780b
2 changed files with 12 additions and 19 deletions

View File

@@ -38,7 +38,7 @@ def graphql_queries_to_json(*queries):
def graphql_response_to_json(content):
content = _util.strip_to_json(content) # Usually only needed in some error cases
content = _util.strip_json_cruft(content) # Usually only needed in some error cases
try:
j = json.loads(content, cls=ConcatJSONDecoder)
except Exception: