From 12146f34fd029e26dad7eea73dbb91b93c37f227 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 10 Sep 2007 07:00:46 +0000 Subject: [PATCH] Removed code that was recasting major errors found during application import. If an application can't be imported, it now throws a full stack trace with the problem, rather than reporting the problem as a one line message. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6087 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/loading.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/django/db/models/loading.py b/django/db/models/loading.py index 090390aa9e..e7d134e6da 100644 --- a/django/db/models/loading.py +++ b/django/db/models/loading.py @@ -52,11 +52,7 @@ class AppCache(object): for app_name in settings.INSTALLED_APPS: if app_name in self.handled: continue - try: - self.load_app(app_name, True) - except Exception, e: - # Problem importing the app - self.app_errors[app_name] = e + self.load_app(app_name, True) if not self.nesting_level: for app_name in self.postponed: self.load_app(app_name)