mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-29 19:18:53 +00:00
raise openapi import error (#11495)
This commit is contained in:
parent
29f5f70415
commit
5470e730d2
@ -266,6 +266,8 @@ def get_openapi_chain(
|
||||
try:
|
||||
spec = conversion(spec) # type: ignore[arg-type]
|
||||
break
|
||||
except ImportError as e:
|
||||
raise e
|
||||
except Exception: # noqa: E722
|
||||
pass
|
||||
if isinstance(spec, str):
|
||||
|
Loading…
Reference in New Issue
Block a user