Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed error output from runserver

This has been missed in commit 822d6d6 (Refs #18325).
  • Loading branch information...
commit dcdaf9a07901c80c0d93663b348595dd2ba7b7a6 1 parent c99ad64
@claudep claudep authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/management/commands/runserver.py
View
2  django/core/management/commands/runserver.py
@@ -123,7 +123,7 @@ def inner_run(self, *args, **options):
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:
Please sign in to comment.
Something went wrong with that request. Please try again.