diff options
Diffstat (limited to 'django/utils/module_loading.py')
| -rw-r--r-- | django/utils/module_loading.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
