Permalink
Browse files

magic-removal: Fixed #1556 -- Fixed typo in django.core.management fr…

…om [2585]. Thanks, pawel.sawicki

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2596 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 344cc98 commit 5072df1ac4014e6c1452843f777b9076d429af2b @adrianholovaty adrianholovaty committed Mar 30, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/management.py
View
4 django/core/management.py
@@ -537,7 +537,7 @@ def install(app):
* At least one of the database tables already exists.
* The SQL was invalid.
Hint: Look at the output of 'django-admin.py sqlall %s'. That's the SQL this command wasn't able to run.
-The full error: """ % (app_name, app_name)) + style.ERROR_OUTPUT(e) + '\n')
+The full error: """ % (app_name, app_name)) + style.ERROR_OUTPUT(str(e)) + '\n')
transaction.rollback_unless_managed()
sys.exit(1)
transaction.commit_unless_managed()
@@ -573,7 +573,7 @@ def reset(app):
* At least one of the database tables already exists.
* The SQL was invalid.
Hint: Look at the output of 'django-admin.py sqlreset %s'. That's the SQL this command wasn't able to run.
-The full error: """ % (app_name, app_name)) + style.ERROR_OUTPUT(e) + '\n')
+The full error: """ % (app_name, app_name)) + style.ERROR_OUTPUT(str(e)) + '\n')
transaction.rollback_unless_managed()
sys.exit(1)
transaction.commit_unless_managed()

0 comments on commit 5072df1

Please sign in to comment.