More custom exceptions
This commit is contained in:
@@ -146,8 +146,8 @@ def graphql_response_to_json(content):
|
|||||||
content = strip_to_json(content) # Usually only needed in some error cases
|
content = strip_to_json(content) # Usually only needed in some error cases
|
||||||
try:
|
try:
|
||||||
j = json.loads(content, cls=ConcatJSONDecoder)
|
j = json.loads(content, cls=ConcatJSONDecoder)
|
||||||
except Exception as e:
|
except Exception:
|
||||||
raise Exception('Error while parsing JSON: {}'.format(repr(content)), e)
|
raise FBchatException('Error while parsing JSON: {}'.format(repr(content)))
|
||||||
|
|
||||||
rtn = [None]*(len(j))
|
rtn = [None]*(len(j))
|
||||||
for x in j:
|
for x in j:
|
||||||
|
Reference in New Issue
Block a user