Added more debug info, to fix a wierd bug
This commit is contained in:
@@ -925,7 +925,7 @@ class Client(object):
|
||||
if len(message_ids) != 1:
|
||||
log.warning("Got multiple message ids' back: {}".format(message_ids))
|
||||
message_id = message_ids[0]
|
||||
except (KeyError, IndexError) as e:
|
||||
except (KeyError, IndexError, TypeError) as e:
|
||||
raise FBchatException('Error when sending message: No message IDs could be found: {}'.format(j))
|
||||
|
||||
# update JS token if received in response
|
||||
|
@@ -213,8 +213,10 @@ def check_request(r, as_json=True):
|
||||
except ValueError:
|
||||
raise FBchatFacebookError('Error while parsing JSON: {!r}'.format(content))
|
||||
check_json(j)
|
||||
log.debug(j)
|
||||
return j
|
||||
else:
|
||||
log.debug(content)
|
||||
return content
|
||||
|
||||
def get_jsmods_require(j, index):
|
||||
|
Reference in New Issue
Block a user