Fix error with processing /etc/passwd
This commit is contained in:
parent
0e35a8655b
commit
3ca96a93e8
|
@ -721,7 +721,7 @@ class MugshotWindow(Window):
|
||||||
line = line.decode('utf-8')
|
line = line.decode('utf-8')
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
logger.debug('Found details: %s' % line.strip())
|
logger.debug('Found details: %s' % line.strip())
|
||||||
details = line.split(':')[4].split(',', 3)
|
details = line.split(':')[4].split(',')[:3]
|
||||||
|
|
||||||
while len(details) < 4:
|
while len(details) < 4:
|
||||||
details.append("")
|
details.append("")
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2016-03-28 07:11-0400\n"
|
"POT-Creation-Date: 2016-03-29 21:59-0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
|
Loading…
Reference in New Issue