Commit 6c95b756 authored by Yann Leboulanger's avatar Yann Leboulanger

migration tool doesn't produce invalid db with wrong filenames

parent 89952468
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment