Skip to content

Commit c0458f4

Browse files
committed
Raise LabNotFound only on 404 Not Found
1 parent 2801b6e commit c0458f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

virl2_client/models/lab.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,8 @@ def _sync_topology(self, exclude_configurations: bool | None = False) -> None:
13851385
and f"Lab not found: {self._id}" in exc.response.text
13861386
):
13871387
self._stale = True
1388-
raise LabNotFound(f"Error syncing lab: {error_msg}")
1388+
raise LabNotFound(f"Error syncing lab: {error_msg}")
1389+
raise
13891390

13901391
topology = result.json()
13911392

0 commit comments

Comments
 (0)