utf problem fixed by NaN for mime

This commit is contained in:
q
2014-11-03 21:12:22 +02:00
parent facf2329a6
commit 19c09ff4f5

View File

@@ -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=? \