Skip to content

Commit d2d84ab

Browse files
committed
fix: mix up of next and updates
1 parent b7507ac commit d2d84ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gallagher/cc/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,12 +541,12 @@ async def follow(
541541
# send this back to the caller
542542
yield parsed_obj
543543

544-
if not parsed_obj.next:
544+
if not parsed_obj.updates:
545545
return
546546

547547
# set the url to the next follow and we should
548548
# be able to follow this endlessly
549-
url = f"{parsed_obj.next.href}"
549+
url = f"{parsed_obj.updates.href}"
550550

551551
elif response.status_code == HTTPStatus.NOT_FOUND:
552552
raise NotFoundException()

0 commit comments

Comments
 (0)