File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments