summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
authorAttila Tovt <uran198@gmail.com>2015-11-15 20:52:47 +0200
committerTim Graham <timograham@gmail.com>2015-11-17 14:39:15 -0500
commit0a2d3b7387b815b4e5d5f3c026f8409fd2a7ff70 (patch)
treea55e3b469dd4e2e40b84b0517800f2c08ce9af06 /django/utils
parent16945f0e9c57aeabadb6f2e2f150a2687455be40 (diff)
Fixed #25682 -- Removed bare except clauses.
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/module_loading.py2
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