From: hernani Date: Thu, 7 Apr 2011 11:27:55 +0000 (+0000) Subject: Catching wrong error type. X-Git-Tag: live~370 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/409b2b15ff9b4124373a4239fb691f30051decc3 Catching wrong error type. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@942 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- 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 = (