Commit fe001079 authored by Andreas Tille's avatar Andreas Tille

Exception handling does not work that way - document the issue and wait for better hints

parent f3e6d05b
......@@ -104,8 +104,16 @@ for group in blends_groups:
# DEBUG : only few projects to be faster
# projects = group.projects.list(page=1, per_page=10, order_by='name', sort='asc')
for pr in projects:
# it seems that 1 second sleeping does not help anyway - there seems to be a block for about 1 hour
# FIXME: try adding sleep(60) statements in the main loop or so
# For the moment wait for responses to https://lists.debian.org/debian-devel/2018/07/msg00119.html
# before implementing anything based on wild guessing
try:
project = gl.projects.get(pr.attributes['id']) # without this extra get repository_tree() fails
except gitlab.exceptions.GitlabGetError:
print("Warning: gitlab.exceptions.GitlabGetError while trying to fetch attributes of %s. Wait one second and try again." % pr.attributes['id'])
time.sleep(1)
project = gl.projects.get(pr.attributes['id']) # without this extra get repository_tree() fails
except gitlab.exceptions.GitlabHttpError:
print("Warning: GitlabHttpError while trying to fetch attributes of %s. Wait one second and try again." % pr.attributes['id'])
time.sleep(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment