diff --git a/gcalcli/gcal.py b/gcalcli/gcal.py index a777023..3c8619d 100644 --- a/gcalcli/gcal.py +++ b/gcalcli/gcal.py @@ -333,11 +333,11 @@ def _get_cached(self): pass # fall through - pageToken = None + page_token = None while True: cal_list = self._retry_with_backoff( self.get_cal_service().calendarList().list( - pageToken=pageToken) + pageToken=page_token) ) self.all_cals.extend(cal_list['items'])