raise openapi import error (#11495)

This commit is contained in:
Bagatur 2023-10-06 12:57:24 -07:00 committed by GitHub
parent 29f5f70415
commit 5470e730d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):