Page MenuHomeSoftware Heritage

list-gitlab-full on crashes with: TypeError: 'NoneType' object cannot be interpreted as an integer
Open, NormalPublic


I scheduled a listing for for the docker env: swh scheduler --url http://localhost:5008/ task add list-gitlab-full -p oneshot api_baseurl=

And the lister errors with:

swh-lister_1                  | Traceback (most recent call last):
swh-lister_1                  |   File "/srv/softwareheritage/venv/lib/python3.7/site-packages/celery/app/", line 385, in trace_task
swh-lister_1                  |     R = retval = fun(*args, **kwargs)
swh-lister_1                  |   File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/scheduler/", line 45, in __call__
swh-lister_1                  |     return super().__call__(*args, **kwargs)
swh-lister_1                  |   File "/srv/softwareheritage/venv/lib/python3.7/site-packages/celery/app/", line 648, in __protected_call__
swh-lister_1                  |     return*args, **kwargs)
swh-lister_1                  |   File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/lister/gitlab/", line 48, in full_gitlab_relister
swh-lister_1                  |     ranges = list(utils.split_range(total_pages, NBPAGES))
swh-lister_1                  |   File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/lister/", line 8, in split_range
swh-lister_1                  |     for index in range(0, total_pages, nb_pages):
swh-lister_1                  | TypeError: 'NoneType' object cannot be interpreted as an integer

I'm using the master version of the lister

Event Timeline

vlorentz updated the task description. (Show Details)
vlorentz triaged this task as Normal priority.Jul 10 2019, 10:16 AM

I think it's related to T1863.