From 6c95b75631979637dd4e39f836528d83cdac96e0 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 24 Nov 2005 21:20:31 +0000 Subject: [PATCH] migration tool doesn't produce invalid db with wrong filenames --- scripts/migrate_logs_to_dot9_db.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/migrate_logs_to_dot9_db.py b/scripts/migrate_logs_to_dot9_db.py index f3b484664..4ef95ef70 100755 --- a/scripts/migrate_logs_to_dot9_db.py +++ b/scripts/migrate_logs_to_dot9_db.py @@ -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