Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
06c06c63
Commit
06c06c63
authored
Nov 06, 2016
by
Aaron Hill
Committed by
GitHub
Nov 06, 2016
Browse files
Merge pull request #766 from alsuren/fix-765
Fix bug in JSONParser.parse() which causes it to return None
parents
a1e4d8b6
776070ef
Changes
1
Show whitespace changes
Inline
Side-by-side
tweepy/parsers.py
View file @
06c06c63
...
...
@@ -54,9 +54,9 @@ class JSONParser(Parser):
raise
TweepError
(
'Failed to parse JSON payload: %s'
%
e
)
needs_cursors
=
'cursor'
in
method
.
session
.
params
if
needs_cursors
and
isinstance
(
json
,
dict
)
:
if
'previous_cursor'
in
json
:
if
'next_cursor'
in
json
:
if
needs_cursors
and
isinstance
(
json
,
dict
)
\
and
'previous_cursor'
in
json
\
and
'next_cursor'
in
json
:
cursors
=
json
[
'previous_cursor'
],
json
[
'next_cursor'
]
return
json
,
cursors
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment