diff --git a/headphones/librarysync.py b/headphones/librarysync.py index f17db1ee..8dfd4dd5 100644 --- a/headphones/librarysync.py +++ b/headphones/librarysync.py @@ -56,7 +56,7 @@ def libraryScan(dir=None): song = os.path.join(r, files) # We need the unicode path to use for logging, inserting into database - unicode_song_path = song.decode(headphones.SYS_ENCODING, errors='replace') + unicode_song_path = song.decode(headphones.SYS_ENCODING, 'replace') # Try to read the metadata try: