Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #10654 -- Removed 'Does it have syntax errors' from the ImportE…

…rror in django/conf/__init__.py. Evidently syntax errors raise a SyntaxError. Thanks, gutworth and alexr

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15812 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit dd3313bf6d4e1928829e6e5c53579fbfdf8ed43f 1 parent 4e25bc7
Adrian Holovaty authored March 14, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/conf/__init__.py
2  django/conf/__init__.py
@@ -86,7 +86,7 @@ def __init__(self, settings_module):
86 86
         try:
87 87
             mod = importlib.import_module(self.SETTINGS_MODULE)
88 88
         except ImportError, e:
89  
-            raise ImportError("Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e))
  89
+            raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
90 90
 
91 91
         # Settings that should be converted into tuples if they're mistakenly entered
92 92
         # as strings.

0 notes on commit dd3313b

Please sign in to comment.
Something went wrong with that request. Please try again.