Skip to content

Commit dafdfe3

Browse files
committed
refactor: avoid bare exception catching
1 parent b8840d5 commit dafdfe3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scim2_tester/checkers/resource_delete.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from typing import Any
22

3+
from scim2_client import SCIMClientError
34
from scim2_models import Resource
45

56
from ..utils import CheckContext
@@ -47,7 +48,7 @@ def object_deletion(
4748
reason=f"{model.__name__} object with id {test_obj.id} still exists after deletion",
4849
)
4950
]
50-
except Exception:
51+
except SCIMClientError:
5152
pass
5253

5354
return [

0 commit comments

Comments
 (0)