From 0a2d3b7387b815b4e5d5f3c026f8409fd2a7ff70 Mon Sep 17 00:00:00 2001 From: Attila Tovt Date: Sun, 15 Nov 2015 20:52:47 +0200 Subject: Fixed #25682 -- Removed bare except clauses. --- django/utils/module_loading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/utils/module_loading.py') diff --git a/django/utils/module_loading.py b/django/utils/module_loading.py index 4a2c500321..9dcbc926b9 100644 --- a/django/utils/module_loading.py +++ b/django/utils/module_loading.py @@ -48,7 +48,7 @@ def autodiscover_modules(*args, **kwargs): before_import_registry = copy.copy(register_to._registry) import_module('%s.%s' % (app_config.name, module_to_search)) - except: + except Exception: # Reset the registry to the state before the last import # as this import will have to reoccur on the next request and # this could raise NotRegistered and AlreadyRegistered -- cgit v1.3