convert images directory content to unicode when resuming download

pull/219/head
Vadim Shlyakhov 9 years ago
parent dec0032971
commit f7e83a767a

@ -1585,7 +1585,7 @@ def resumePreviousDump(config={}, other={}):
# checking images directory
listdir = []
try:
listdir = os.listdir('%s/images' % (config['path']))
listdir = [n.decode('utf-8') for n in os.listdir('%s/images' % (config['path']))]
except:
pass # probably directory does not exist
listdir.sort()

Loading…
Cancel
Save