New issue 116 by jonathan.grot: EvolutionException is being passed instead
of string value to Django BaseCommand.style.ERROR()
http://code.google.com/p/django-evolution/issues/detail?id=116
Need to change line 154 in management/commands/evolve.py to
print self.style.ERROR(str(e))
Using svn development check-out of Django.
What steps will reproduce the problem?
1. evolve --hint --execute when there is a problem
What is the expected output?
A message
What do you see instead?
Traceback (most recent call last):
File "./manage.py", line 11, in <module>
execute_manager(settings)
File "/usr/lib/python2.6/dist-packages/django/core/management/__init__.py",
line 438, in
execute_manager
utility.execute()
File "/usr/lib/python2.6/dist-packages/django/core/management/__init__.py",
line 379, in
execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.6/dist-packages/django/core/management/base.py",
line 196, in
run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.6/dist-packages/django/core/management/base.py",
line 223, in
execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.6/dist-
packages/django_evolution/management/commands/evolve.py", line 154, in
handle
print self.style.ERROR(e)
File "/usr/lib/python2.6/dist-packages/django/utils/termcolors.py", line
66, in <lambda>
return lambda text: colorize(text, opts, **kwargs)
File "/usr/lib/python2.6/dist-packages/django/utils/termcolors.py", line
53, in colorize
text = text + '\x1b[%sm' % RESET
TypeError: unsupported operand type(s) for +: 'EvolutionException' and 'str'
What version of the product are you using? On what operating system? What
database backend?
Latest svn checkout
Please provide any additional information below.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings