Kaydet (Commit) dcdaf9a0 authored tarafından Claude Paroz's avatar Claude Paroz

Fixed error output from runserver

This has been missed in commit 822d6d6d (Refs #18325).
üst c99ad64d
......@@ -123,7 +123,7 @@ class Command(BaseCommand):
error_text = ERRORS[e.args[0].args[0]]
except (AttributeError, KeyError):
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
os._exit(1)
except KeyboardInterrupt:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment