Skip to content

Commit e6c2811

Browse files
committed
Just let the exception be thrown.
1 parent 85867a0 commit e6c2811

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Tasks/PageIterator.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,7 @@ public function next(): ?PageResult {
102102
}
103103

104104
$response = $this->fetchNextPage();
105-
try {
106-
$result = $response->wait();
107-
} catch (Exception $exception){
108-
return null;
109-
}
105+
$result = $response->wait();
110106
return self::convertToPage($result);
111107
}
112108

0 commit comments

Comments
 (0)