Commit f72f71fc authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

oops

parent cb8221c3
Pipeline #14765 failed with stage
in 53 seconds
...@@ -106,7 +106,7 @@ class Forge(Links, NamedModel): ...@@ -106,7 +106,7 @@ class Forge(Links, NamedModel):
data = data[name] data = data[name]
yield from data yield from data
page = api_next(self.source, req) page = api_next(self.source, req)
if limit is not None and page > limit: if limit is not None and page is not None and page > limit:
break break
def headers(self): def headers(self):
...@@ -523,7 +523,7 @@ class Repo(TimeStampedModel): ...@@ -523,7 +523,7 @@ class Repo(TimeStampedModel):
return [] # TODO return [] # TODO
yield from data yield from data
page = api_next(self.forge.source, req) page = api_next(self.forge.source, req)
if limit is not None and page > limit: if limit is not None and page is not None and page > limit:
break break
def api_update(self): def api_update(self):
......
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