From 753cb0e78ad5b5f6e4af6968cfccc52308df8250 Mon Sep 17 00:00:00 2001 From: Bill Mill Date: Sun, 27 Jan 2013 17:38:44 -0500 Subject: [PATCH] fix failing get_page function * if firstParams was None, PaginatedList was calling dict(None) which fails with a TypeError. If firstParams is None, just use an empty tuple, which dict() handles properly --- github/PaginatedList.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/PaginatedList.py b/github/PaginatedList.py index 8f7addd1..117f7947 100644 --- a/github/PaginatedList.py +++ b/github/PaginatedList.py @@ -74,7 +74,7 @@ class PaginatedList(PaginatedListBase): self.__requester = requester self.__contentClass = contentClass self.__firstUrl = firstUrl - self.__firstParams = firstParams + self.__firstParams = firstParams or () self.__nextUrl = firstUrl self.__nextParams = firstParams