diff options
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 6513c33..d5c6225 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -960,6 +960,9 @@ class Mastodon: | |||
960 | if isinstance(response, list) and 'Link' in response_object.headers and response_object.headers['Link'] != "": | 960 | if isinstance(response, list) and 'Link' in response_object.headers and response_object.headers['Link'] != "": |
961 | tmp_urls = requests.utils.parse_header_links(response_object.headers['Link'].rstrip('>').replace('>,<', ',<')) | 961 | tmp_urls = requests.utils.parse_header_links(response_object.headers['Link'].rstrip('>').replace('>,<', ',<')) |
962 | for url in tmp_urls: | 962 | for url in tmp_urls: |
963 | if not 'rel' in url: | ||
964 | continue | ||
965 | |||
963 | if url['rel'] == 'next': | 966 | if url['rel'] == 'next': |
964 | # Be paranoid and extract max_id specifically | 967 | # Be paranoid and extract max_id specifically |
965 | next_url = url['url'] | 968 | next_url = url['url'] |