migration tool doesn't produce invalid db with wrong filenames

This commit is contained in:
Yann Leboulanger 2005-11-24 21:20:31 +00:00
parent 89952468ef
commit 6c95b75631
1 changed files with 4 additions and 0 deletions

View File

@ -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