Skip to content
Snippets Groups Projects
Commit 6c95b756 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

migration tool doesn't produce invalid db with wrong filenames

parent 89952468
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment