---- ERROR ----
Path was: /home/philip/Musik/��EA Games/��Medal of Honor: Allied Assault Theme.mp3
stat() argument 1 must be (encoded string without NULL bytes), not str
<type 'exceptions.TypeError'>
Traceback (most recent call last):
File "sortmusik", line 270, in <module>
main(sys.argv[1:])
File "sortmusik", line 254, in main
response = traverse(root)
File "sortmusik", line 176, in traverse
parse_file(node, root)
File "sortmusik", line 150, in parse_file
arrange_file(filename, ID3File(data).tags, root)
File "sortmusik", line 124, in arrange_file
path = get_name(tags, root, filename)
File "sortmusik", line 98, in get_name
if isfile(path) and path != filename:
File "/usr/lib/python2.5/posixpath.py", line 208, in isfile
st = os.stat(path)
TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str