Skip to main content
Every exception the router raises derives from WebRouterError and imports from web_router, so one except covers the lot:
These are siblings, not a hierarchy: ProviderNotInstalledError is not a subclass of ConfigurationError, so except ConfigurationError will not catch a missing extra. Catch WebRouterError unless you mean one specific case.