﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23946	Runserver socket error in unicode fails to print error message	Andriy Sokolovskiy	Andriy Sokolovskiy	"In `django.core.management.commands.runserver.Command#inner_run`, when catching socket error, can be a unicode problem.
For example, after `error_text = str(e)` there can be an unicode text, so this line will raise `UnicodeDecodeError` and will not exit runserver command:


{{{

self.stderr.write(""Error: %s"" % error_text)
}}}



Simple solution:



{{{
self.stderr.write(""Error: %s"" % error_text.decode('utf-8'))

}}}

"	Bug	new	Core (Management commands)	dev	Normal		unicode, runserver, management command		Unreviewed	0	0	0	0	0	0
