diff --git a/src/diffusers/pipelines/__init__.py b/src/diffusers/pipelines/__init__.py index fb5719cd..4c0822d1 100644 --- a/src/diffusers/pipelines/__init__.py +++ b/src/diffusers/pipelines/__init__.py @@ -5,8 +5,7 @@ from .pipeline_ddpm import DDPM try: from .pipeline_glide import GLIDE -except ImportError: - +except (NameError, ImportError): class GLIDE: pass