mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 11:39:18 +00:00
community: tigergraph
fixes (#20034)
- added guard on the `pyTigerGraph` import - added a missed example page in the `docs/integrations/graphs/` - formatted the `docs/integrations/providers/` page to the consistent format. Added links.
This commit is contained in:
@@ -39,7 +39,13 @@ class TigerGraph(GraphStore):
|
||||
return str(self._schema)
|
||||
|
||||
def set_connection(self, conn: Any) -> None:
|
||||
from pyTigerGraph import TigerGraphConnection
|
||||
try:
|
||||
from pyTigerGraph import TigerGraphConnection
|
||||
except ImportError:
|
||||
raise ImportError(
|
||||
"Could not import pyTigerGraph python package. "
|
||||
"Please install it with `pip install pyTigerGraph`."
|
||||
)
|
||||
|
||||
if not isinstance(conn, TigerGraphConnection):
|
||||
msg = "**conn** parameter must inherit from TigerGraphConnection"
|
||||
|
Reference in New Issue
Block a user