Skip to content

Commit f59ac37

Browse files
committed
chore: lint
1 parent 3cb33f6 commit f59ac37

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/typesense/collections.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,15 @@ def __contains__(self, collection_name: str) -> bool:
7171
bool: True if the collection exists, False otherwise.
7272
"""
7373
if collection_name in self.collections:
74-
try:
75-
self.collections[collection_name].retrieve()
74+
try: # noqa: WPS229, WPS529
75+
76+
self.collections[collection_name].retrieve() # noqa: WPS529
7677
return True
7778
except Exception:
7879
self.collections.pop(collection_name, None)
7980
return False
80-
81-
try:
81+
82+
try: # noqa: WPS229, WPS529
8283
Collection(self.api_call, collection_name).retrieve()
8384
return True
8485
except Exception:

0 commit comments

Comments
 (0)