diff --git a/django/contrib/auth/management/__init__.py b/django/contrib/auth/management/__init__.py
index 100acb6..54b60d7 100644
a
|
b
|
def get_system_username():
|
85 | 85 | """ |
86 | 86 | try: |
87 | 87 | return getpass.getuser().decode(locale.getdefaultlocale()[1]) |
88 | | except (ImportError, KeyError, UnicodeDecodeError): |
| 88 | except (TypeError, ImportError, KeyError, UnicodeDecodeError): |
89 | 89 | # KeyError will be raised by os.getpwuid() (called by getuser()) |
90 | 90 | # if there is no corresponding entry in the /etc/passwd file |
91 | 91 | # (a very restricted chroot environment, for example). |