[pypy-svn] r55390 - pypy/django/django/core/management/commands

antocuni at codespeak.net antocuni at codespeak.net
Thu May 29 14:41:19 CEST 2008


Author: antocuni
Date: Thu May 29 14:41:16 2008
New Revision: 55390

Modified:
   pypy/django/django/core/management/commands/syncdb.py
Log:
be a little more strict when checking the error message



Modified: pypy/django/django/core/management/commands/syncdb.py
==============================================================================
--- pypy/django/django/core/management/commands/syncdb.py	(original)
+++ pypy/django/django/core/management/commands/syncdb.py	Thu May 29 14:41:16 2008
@@ -34,8 +34,8 @@
             try:
                 __import__(app_name + '.management', {}, {}, [''])
             except ImportError, exc:
-                if 'management' not in exc.args[0]:
-                #if not exc.args[0].startswith('No module named management'):
+                msg = exc.args[0]
+                if not msg.startswith('No module named') or 'management' not in msg:
                     raise
 
         cursor = connection.cursor()



More information about the Pypy-commit mailing list