Skip to content

Conversation

grogsaxle
Copy link

Had this error:

[INFO] notbob's LoginItems
[INFO] /Users/notbob/Library/Preferences/com.apple.loginitems.plist
Traceback (most recent call last):
  File "osxauditor.py", line 1700, in <module>
    Main()
  File "osxauditor.py", line 1655, in Main
    ParseStartup()
  File "osxauditor.py", line 534, in ParseStartup
    PrintAndLog(CustomListItem['Name'].decode('utf-8') + u' - ' + binascii.hexlify(CustomListItem['Alias']).decode('hex').decode('utf-8', 'ignore'), 'INFO')
  File "osxauditor.py", line 230, in PrintAndLog
    print(u'[INFO] ' + LogStr)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0438' in position 51: ordinal not in range(128)

Would probably rework to not use print, but this is at least handles getting past the above error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant