Browse Source

Py3: No need to check for Unicode-errors when listing files

I hope.
pull/1333/head
Safihre 6 years ago
parent
commit
9b4769b54a
  1. 8
      sabnzbd/filesystem.py

8
sabnzbd/filesystem.py

@ -570,12 +570,8 @@ def recursive_listdir(dir):
for root, dirs, files in os.walk(dir):
for file in files:
if ".AppleDouble" not in root and ".DS_Store" not in root:
try:
p = os.path.join(root, file)
filelist.append(p)
except UnicodeDecodeError:
# Just skip failing names
pass
p = os.path.join(root, file)
filelist.append(p)
return filelist

Loading…
Cancel
Save