From fe5798dcbe57253c8670068791664f1837d33c76 Mon Sep 17 00:00:00 2001 From: Antti Viitala Date: Thu, 30 Nov 2023 08:12:16 +0800 Subject: [PATCH] feat(urls): don't catch exceptions during provider import --- allauth/urls.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/allauth/urls.py b/allauth/urls.py index d6a5291eff..5543ef0b82 100644 --- a/allauth/urls.py +++ b/allauth/urls.py @@ -24,10 +24,7 @@ cls for cls in provider_classes if cls.id == "openid_connect" ] for provider_class in provider_classes: - try: - prov_mod = import_module(provider_class.get_package() + ".urls") - except ImportError: - continue + prov_mod = import_module(provider_class.get_package() + ".urls") prov_urlpatterns = getattr(prov_mod, "urlpatterns", None) if prov_urlpatterns: provider_urlpatterns += prov_urlpatterns