From ca9f7ac2df1bb893101e7549cf52faaef11c2454 Mon Sep 17 00:00:00 2001 From: Patrick von Platen Date: Wed, 15 Jun 2022 16:19:15 +0200 Subject: [PATCH] fix import glide --- src/diffusers/pipelines/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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