Ticket #10654: drop_incorrect_syntax_suggestion.patch

File drop_incorrect_syntax_suggestion.patch, 791 bytes (added by Alex Robbins, 14 years ago)

Tiny patch to drop syntax error suggestion

  • django/conf/__init__.py

    ---
     django/conf/__init__.py |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/django/conf/__init__.py b/django/conf/__init__.py
    index 47eec6a..f2012a6 100644
    a b class Settings(BaseSettings):  
    8686        try:
    8787            mod = importlib.import_module(self.SETTINGS_MODULE)
    8888        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))
    9090
    9191        # Settings that should be converted into tuples if they're mistakenly entered
    9292        # as strings.
Back to Top