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