(<github.PaginatedList.PaginatedList object at 0x7f1c6a492a50>
).
My code is something like this -
a_project_column.get_cards()[-1]
and the error is
"IndexError: list index out of range"
But the below code is working fine for getting the desired result (i.e., > >ProjectCard(id=5161717))
a_project_column.get_cards()[0]
For reference https://github.com/PyGithub/PyGithub/blob/master/github/PaginatedList.py
I know it's been a while, but I found the solution to this and I figured I'd provide it for anyone who should go Googling as I did, to no avail:
Instead of
a_project_column.get_cards()[-1]
Try:
cards = a_project_column.get_cards()
final_card = cards[cards.totalCount - 1]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With