From 409b2b15ff9b4124373a4239fb691f30051decc3 Mon Sep 17 00:00:00 2001 From: hernani Date: Thu, 7 Apr 2011 11:27:55 +0000 Subject: [PATCH] Catching wrong error type. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@942 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum/urls.py b/forum/urls.py index b5038c0..093be4f 100644 --- a/forum/urls.py +++ b/forum/urls.py @@ -20,7 +20,7 @@ APP_PATH = os.path.dirname(__file__) try: admin_url = url(r'^%s(.*)' % _('nimda/'), admin.site.root) -except ImportError: +except AttributeError: admin_url = url(r'^%s(.*)' % _('nimda/'), admin.site.urls) core_urls = ( -- 2.39.5