migration tool doesn't produce invalid db with wrong filenames
This commit is contained in:
parent
89952468ef
commit
6c95b75631
|
@ -97,6 +97,10 @@ def visit(arg, dirname, filenames):
|
|||
# notifications are also in contact log file
|
||||
if filename == 'notify.log':
|
||||
continue
|
||||
try:
|
||||
filename.decode('utf-8')
|
||||
except:
|
||||
continue
|
||||
path_to_text_file = os.path.join(dirname, filename)
|
||||
if os.path.isdir(path_to_text_file):
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue