Skip to content

Commit

Permalink
feat(urls): don't catch exceptions during provider import
Browse files Browse the repository at this point in the history
  • Loading branch information
Antti Viitala committed Nov 30, 2023
1 parent dbdf6cb commit fe5798d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions allauth/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe5798d

Please sign in to comment.