Fatal error when cannot decode
Brought to you by:
h_lamer
The script doesn't handle the exception where one of the provided charsets fails in decoding. This happens before the user can even choose which charset to use. Simple having an incompatible charset will fatally end script.
Traceback (most recent call last):
File "/home/darkfeline/bin/tag2utf-0.16.py", line 226, in <module>
passDir (root)
File "/home/darkfeline/bin/tag2utf-0.16.py", line 94, in passDir
askUser (tags,songs,titles,artists,albums)
File "/home/darkfeline/bin/tag2utf-0.16.py", line 139, in askUser
outlst.append(titles[i].decode(charset))
UnicodeDecodeError: 'shift_jis' codec can't decode bytes in position 5-6: illegal multibyte sequence