We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cb33f6 commit f59ac37Copy full SHA for f59ac37
src/typesense/collections.py
@@ -71,14 +71,15 @@ def __contains__(self, collection_name: str) -> bool:
71
bool: True if the collection exists, False otherwise.
72
"""
73
if collection_name in self.collections:
74
- try:
75
- self.collections[collection_name].retrieve()
+ try: # noqa: WPS229, WPS529
+
76
+ self.collections[collection_name].retrieve() # noqa: WPS529
77
return True
78
except Exception:
79
self.collections.pop(collection_name, None)
80
return False
-
81
82
83
Collection(self.api_call, collection_name).retrieve()
84
85
0 commit comments