Skip to content

Commit ee06cb9

Browse files
committed
fix nits
1 parent 0a51252 commit ee06cb9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/js-sdk/src/sandbox/sandboxApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ export class SandboxPaginator {
793793
}
794794

795795
/**
796-
* Returns True if there are more items to fetch.
796+
* Returns true if there are more items to fetch.
797797
*/
798798
get hasNext(): boolean {
799799
return this._hasNext
@@ -920,7 +920,7 @@ export class SnapshotPaginator {
920920
}
921921

922922
/**
923-
* Returns True if there are more items to fetch.
923+
* Returns true if there are more items to fetch.
924924
*/
925925
get hasNext(): boolean {
926926
return this._hasNext

packages/python-sdk/e2b/sandbox_async/paginator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def next_items(self) -> List[SandboxInfo]:
3939
:returns: List of sandboxes
4040
"""
4141
if not self.has_next:
42-
raise Exception("No more items to fetch")
42+
raise SandboxException("No more items to fetch")
4343

4444
# Convert filters to the format expected by the API
4545
metadata: Optional[str] = None
@@ -68,7 +68,7 @@ async def next_items(self) -> List[SandboxInfo]:
6868
if res.parsed is None:
6969
return []
7070

71-
# Check if res.parse is Error
71+
# Check if res.parsed is Error
7272
if isinstance(res.parsed, Error):
7373
raise SandboxException(f"{res.parsed.message}: Request failed")
7474

@@ -98,7 +98,7 @@ async def next_items(self) -> List[SnapshotInfo]:
9898
:returns: List of snapshots
9999
"""
100100
if not self.has_next:
101-
raise Exception("No more items to fetch")
101+
raise SandboxException("No more items to fetch")
102102

103103
api_client = get_api_client(self._config)
104104
res = await get_snapshots.asyncio_detailed(

packages/python-sdk/e2b/sandbox_sync/paginator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def next_items(self) -> List[SandboxInfo]:
3939
:returns: List of sandboxes
4040
"""
4141
if not self.has_next:
42-
raise Exception("No more items to fetch")
42+
raise SandboxException("No more items to fetch")
4343

4444
# Convert filters to the format expected by the API
4545
metadata: Optional[str] = None
@@ -68,7 +68,7 @@ def next_items(self) -> List[SandboxInfo]:
6868
if res.parsed is None:
6969
return []
7070

71-
# Check if res.parse is Error
71+
# Check if res.parsed is Error
7272
if isinstance(res.parsed, Error):
7373
raise SandboxException(f"{res.parsed.message}: Request failed")
7474

@@ -98,7 +98,7 @@ def next_items(self) -> List[SnapshotInfo]:
9898
:returns: List of snapshots
9999
"""
100100
if not self.has_next:
101-
raise Exception("No more items to fetch")
101+
raise SandboxException("No more items to fetch")
102102

103103
api_client = get_api_client(self._config)
104104
res = get_snapshots.sync_detailed(

0 commit comments

Comments
 (0)