Skip to content

Commit 552026a

Browse files
Minor fix
1 parent c27087d commit 552026a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

amadeus/mixins/pagination.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def __page(self, name, response):
3535

3636
def __page_number_for(self, name, response):
3737
try:
38-
return return response.result['meta']['links'][name].split('page%5Boffset%5D=')[1].split('&')[0]
38+
url = response.result['meta']['links'][name]
39+
return url.split('page%5Boffset%5D=')[1].split('&')[0]
3940
except Exception:
4041
return None

0 commit comments

Comments
 (0)