mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-06 15:13:56 +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:
|
try:
|
||||||
spec = conversion(spec) # type: ignore[arg-type]
|
spec = conversion(spec) # type: ignore[arg-type]
|
||||||
break
|
break
|
||||||
|
except ImportError as e:
|
||||||
|
raise e
|
||||||
except Exception: # noqa: E722
|
except Exception: # noqa: E722
|
||||||
pass
|
pass
|
||||||
if isinstance(spec, str):
|
if isinstance(spec, str):
|
||||||
|
Loading…
Reference in New Issue
Block a user