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 16017 createsuperuser fails if Python can't detect default locale Preston Timmons Ramiro Morales "Changeset r16182 introduced a get_system_username() function to the createsuperuser command. This includes the lines: {{{#!python try: return getpass.getuser().decode(locale.getdefaultlocale()[1]) except (ImportError, KeyError, UnicodeDecodeError): }}} If Python can't detect the default system locale, local.getdefaultlocale returns (None, None). This causes decode to raise: {{{#!python TypeError: decode() argument 1 must be string, not None }}}" Bug closed Core (Management commands) 1.4 Normal fixed dceu2011 Dmitry Jemerov niels_bom Chris.Wesseling@… kmike84@… Accepted 1 0 0 0 1 0