Fixed error output from runserver

This has been missed in commit 822d6d6dab (Refs #18325).
This commit is contained in:
Claude Paroz 2012-10-10 17:54:27 +02:00
parent c99ad64df7
commit dcdaf9a079
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class Command(BaseCommand):
error_text = ERRORS[e.args[0].args[0]] error_text = ERRORS[e.args[0].args[0]]
except (AttributeError, KeyError): except (AttributeError, KeyError):
error_text = str(e) error_text = str(e)
sys.stderr.write("Error: %s" % error_text) self.stderr.write("Error: %s" % error_text)
# Need to use an OS exit because sys.exit doesn't work in a thread # Need to use an OS exit because sys.exit doesn't work in a thread
os._exit(1) os._exit(1)
except KeyboardInterrupt: except KeyboardInterrupt: