Spaces:
Build error
Build error
Commit ·
5e4315c
1
Parent(s): b1a798e
Update weaviate_utils.py
Browse files54 unmodified lines55565758595859606162636454 unmodified lines
def get_class_schema(client, class_name): try: return client.schema.get_class(class_name) except weaviate.exceptions.SchemaValidationException: schema = client.schema.get() for cls in schema["classes"]: if cls["class"] == class_name: return cls return None except weaviate.exceptions.SchemaValidationException: return Noneweaviate_utils.py+6-2