From 19c09ff4f59faa692a77964970e80dce684a5601 Mon Sep 17 00:00:00 2001 From: q Date: Mon, 3 Nov 2014 21:12:22 +0200 Subject: [PATCH] utf problem fixed by NaN for mime --- file_list.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/file_list.py b/file_list.py index ede022c..d254e68 100755 --- a/file_list.py +++ b/file_list.py @@ -193,6 +193,8 @@ def add_single(conn,filename,change=False,hash=None,minsize=0): except IOError: print("File not found. Bad link?") return + except UnicodeDecodeError: + mime="NA" if change: db.execute("UPDATE list SET date=?, hash=?, size=?, mime=? \